class CreateTkhSearchEvents

Public Class Methods

down() click to toggle source
# File lib/generators/tkh_search/create_or_update_migrations/templates/create_tkh_search_events.rb, line 12
def self.down
  remove_index :tkh_search_events, :tkh_search_query_id
  drop_table :tkh_search_events
end
up() click to toggle source
# File lib/generators/tkh_search/create_or_update_migrations/templates/create_tkh_search_events.rb, line 3
def self.up
  create_table :tkh_search_events do |t|
    t.integer :tkh_search_query_id
    t.string  :language
    t.timestamps
  end
  add_index :tkh_search_events, :tkh_search_query_id
end