blob: 1b20c9ffa3211fee2db25cffe2451325c8760e04 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
class CreateQueuedBoosts < ActiveRecord::Migration[5.2]
def change
create_table :queued_boosts do |t|
t.references :account, foreign_key: { on_delete: :cascade }
t.references :status, foreign_key: { on_delete: :cascade }
t.timestamps
end
add_index :queued_boosts, [:account_id, :status_id], unique: true
end
end
|