class CreateTkhSearchQueries
Public Class Methods
down()
click to toggle source
# File lib/generators/tkh_search/create_or_update_migrations/templates/create_tkh_search_queries.rb, line 11 def self.down remove_index :tkh_search_queries, :string drop_table :tkh_search_queries end
up()
click to toggle source
# File lib/generators/tkh_search/create_or_update_migrations/templates/create_tkh_search_queries.rb, line 3 def self.up create_table :tkh_search_queries do |t| t.string :string t.timestamps end add_index :tkh_search_queries, :string end