fedibird-fe/db/migrate/20190911093445_create_domain_subscribes.rb
2021-08-12 07:08:36 +09:00

11 lines
332 B
Ruby

class CreateDomainSubscribes < ActiveRecord::Migration[5.2]
def change
create_table :domain_subscribes do |t|
t.references :account, foreign_key: { on_delete: :cascade }
t.references :list, foreign_key: { on_delete: :cascade }
t.string :domain, default: '', null: false
t.timestamps
end
end
end