notebook/db/migrate/20180131055729_create_character_technologies.rb
2018-07-05 01:10:52 -05:00

12 lines
358 B
Ruby

class CreateCharacterTechnologies < ActiveRecord::Migration[4.2]
def change
create_table :character_technologies do |t|
t.references :user, index: true, foreign_key: true
t.references :character, index: true, foreign_key: true
t.references :technology, index: true, foreign_key: true
t.timestamps null: false
end
end
end