* Add search_keywords record and associated functionality * Fix test and add badge rewarder method
14 lines
395 B
Ruby
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
|