You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
486 B

class CreateTrainingWatchHits < ActiveRecord::Migration[7.1]
def change
create_table :training_watch_hits do |t|
t.references :training_watch_source, null: false, foreign_key: true
t.string :title
t.string :hit_url
t.datetime :published_at
t.text :snippet
t.string :fingerprint, null: false
t.timestamps
end
add_index :training_watch_hits, :fingerprint, unique: true
add_index :training_watch_hits, :created_at
end
end