diff options
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20210503235646_create_character_skills.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20210503235646_create_character_skills.rb b/db/migrate/20210503235646_create_character_skills.rb new file mode 100644 index 0000000..d579ea0 --- /dev/null +++ b/db/migrate/20210503235646_create_character_skills.rb @@ -0,0 +1,11 @@ +class CreateCharacterSkills < ActiveRecord::Migration[6.1] + def change + create_table :character_skills do |t| + t.references :character, null: false, foreign_key: true + t.references :skill, null: false, foreign_key: true + t.bigint :xp + + t.timestamps + end + end +end |