Module: PgSearchScope::CommandRecorder
- Defined in:
- lib/pg_search_scope/migration_helper.rb
Instance Method Summary collapse
Instance Method Details
#add_fulltext_index(*args) ⇒ Object
22 23 24 |
# File 'lib/pg_search_scope/migration_helper.rb', line 22 def add_fulltext_index *args record(:add_fulltext_index, args) end |
#invert_add_fulltext_index(args) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/pg_search_scope/migration_helper.rb', line 26 def invert_add_fulltext_index(args) table, columns, = *args index_name = .try(:[], :name) = index_name ? {:name => index_name} : {:column => columns} [:remove_fulltext_index, [table, ]] end |