docbrown/db/migrate/20180624230435_create_search_keywords.rb
Ben Halpern 75d3a79c12
Add search_keywords record and associated functionality (#494)
* Add search_keywords record and associated functionality

* Fix test and add badge rewarder method
2018-06-25 11:58:07 -04:00

14 lines
395 B
Ruby

class CreateSearchKeywords < ActiveRecord::Migration[5.1]
def change
create_table :search_keywords do |t|
t.string :keyword
t.string :google_result_path
t.integer :google_position
t.integer :google_volume
t.integer :google_difficulty
t.datetime :google_checked_at
t.timestamps
end
add_index :search_keywords, :google_result_path
end
end