summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-03 20:08:28 -0400
committerDavid Gay <david@davidgay.org>2021-05-03 20:08:28 -0400
commitdddbf75428477f5e073584939d098e55d6324be3 (patch)
treec35291b32f1ba19bda66839d778b9758549a140f /db/migrate
parentaa25545eb204d0ca842ab948af4c27cb217352d6 (diff)
Add CharacterSkills
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20210503235646_create_character_skills.rb11
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