notebook/db/migrate/20200325191904_create_lore_characters.rb
2020-03-27 20:13:52 -05:00

12 lines
325 B
Ruby

class CreateLoreCharacters < ActiveRecord::Migration[6.0]
def change
create_table :lore_characters do |t|
t.references :lore, null: false, foreign_key: true
t.references :character, null: false, foreign_key: true
t.references :user, null: true, foreign_key: true
t.timestamps
end
end
end