12 lines
324 B
Ruby
12 lines
324 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class AddAccountToUsers < ActiveRecord::Migration[5.2]
|
||
|
def change
|
||
|
add_reference :users,
|
||
|
:account,
|
||
|
null: false, # rubocop:disable Rails/NotNullColumn
|
||
|
index: { unique: true },
|
||
|
foreign_key: true
|
||
|
end
|
||
|
end
|