fedibird-fe/db/migrate/20190911093445_create_domain_subscribes.rb

12 lines
332 B
Ruby
Raw Normal View History

2019-08-30 08:02:41 +00:00
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