11 lines
262 B
Ruby
11 lines
262 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateRelationships < ActiveRecord::Migration[6.0]
|
|
def change
|
|
create_table :relationships do |t|
|
|
t.timestamps null: false
|
|
|
|
t.references :person, null: false, index: true, foreign_key: true
|
|
end
|
|
end
|
|
end
|