From ca9d189e51b7467f539d906a6e891fa4a7caa2fc Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 25 May 2021 20:31:22 -0400 Subject: Queued actions, allowing for non-infinite activity repeat and one-time activities --- db/migrate/20210526000349_add_queued_actions_to_characters.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210526000349_add_queued_actions_to_characters.rb (limited to 'db') diff --git a/db/migrate/20210526000349_add_queued_actions_to_characters.rb b/db/migrate/20210526000349_add_queued_actions_to_characters.rb new file mode 100644 index 0000000..cb6fdf7 --- /dev/null +++ b/db/migrate/20210526000349_add_queued_actions_to_characters.rb @@ -0,0 +1,5 @@ +class AddQueuedActionsToCharacters < ActiveRecord::Migration[6.1] + def change + add_column :characters, :queued_actions, :integer + end +end diff --git a/db/schema.rb b/db/schema.rb index 87f3473..bd2b95b 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_23_232805) do +ActiveRecord::Schema.define(version: 2021_05_26_000349) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -80,6 +80,7 @@ ActiveRecord::Schema.define(version: 2021_05_23_232805) do t.datetime "updated_at", precision: 6, null: false t.bigint "active_title_id" t.integer "wounds" + t.integer "queued_actions" 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