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

10 lines
317 B
Ruby

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