From 9b2acceda7e36946f9bb15ff8d1a93f9c45a964f Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 19:26:00 -0400 Subject: Combat styles --- db/migrate/20210526225100_add_combat_styles_to_characters.rb | 6 ++++++ db/schema.rb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210526225100_add_combat_styles_to_characters.rb (limited to 'db') 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" -- cgit v1.2.3