fedibird-fe/db/migrate/20190901090544_create_account_subscribes.rb

11 lines
317 B
Ruby
Raw Normal View History

2019-08-30 08:02:41 +00:00
class CreateAccountSubscribes < ActiveRecord::Migration[5.2]
def change
create_table :account_subscribes do |t|
t.references :account, foreign_key: { on_delete: :cascade }
t.references :target_account, foreign_key: { to_table: 'accounts', on_delete: :cascade }
t.timestamps
end
end
end