diff options
author | David Gay <david@davidgay.org> | 2021-05-26 19:26:00 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-26 19:26:00 -0400 |
commit | 9b2acceda7e36946f9bb15ff8d1a93f9c45a964f (patch) | |
tree | 67ebf8f7fcefb4a1811074c9eec519d865c70391 /db | |
parent | 0b9b45d573cc4f836ba7a99de77e9da18e768f10 (diff) |
Combat styles
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20210526225100_add_combat_styles_to_characters.rb | 6 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/20210526225100_add_combat_styles_to_characters.rb b/db/migrate/20210526225100_add_combat_styles_to_characters.rb new file mode 100644 index 0000000..8ccbfc4 --- /dev/null +++ b/db/migrate/20210526225100_add_combat_styles_to_characters.rb @@ -0,0 +1,6 @@ +class AddCombatStylesToCharacters < ActiveRecord::Migration[6.1] + def change + add_column :characters, :offensive_style, :integer + add_column :characters, :defensive_style, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index bd2b95b..74bb4e6 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_05_26_000349) do +ActiveRecord::Schema.define(version: 2021_05_26_225100) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -81,6 +81,8 @@ ActiveRecord::Schema.define(version: 2021_05_26_000349) do t.bigint "active_title_id" t.integer "wounds" t.integer "queued_actions" + t.integer "offensive_style" + t.integer "defensive_style" t.index ["active_title_id"], name: "index_characters_on_active_title_id" t.index ["activity_id"], name: "index_characters_on_activity_id" t.index ["user_id"], name: "index_characters_on_user_id" |