class CreateTkhSearchTerms

Public Class Methods

down() click to toggle source
# File lib/generators/tkh_search/create_or_update_migrations/templates/create_tkh_search_terms.rb, line 11
def self.down
  remove_index :tkh_search_terms, :word
  drop_table :tkh_search_terms
end
up() click to toggle source
# File lib/generators/tkh_search/create_or_update_migrations/templates/create_tkh_search_terms.rb, line 3
def self.up
  create_table :tkh_search_terms do |t|
    t.string :word
    t.timestamps
  end
  add_index :tkh_search_terms, :word
end