blob: 893972848a4127a99c3066c4d7618bedd19a89d3 (
plain) (
blame)
1
2
3
4
5
6
|
class AddMovedToAccountIdToAccounts < ActiveRecord::Migration[5.2]
def change
add_column :accounts, :moved_to_account_id, :bigint, null: true, default: nil
safety_assured { add_foreign_key :accounts, :accounts, column: :moved_to_account_id, on_delete: :nullify }
end
end
|