```ruby
class AddFullTextSearchIndexToDocuments < ActiveRecord::Migration
  def change
  end
end
```

Add an index for full text search
user
```ruby
class AddFullTextSearchIndexToDocuments < ActiveRecord::Migration
  def change
    add_index :documents, :content, type: :fulltext
  end
end
```
assistant