From 8cec9b3f6f277399c6da23a04d8afb0c68cf8a2b Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 26 May 2021 20:57:47 -0400 Subject: Basic usage of hearth amenities --- .../20210527002712_add_last_used_at_to_built_hearth_amenities.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210527002712_add_last_used_at_to_built_hearth_amenities.rb (limited to 'db') diff --git a/db/migrate/20210527002712_add_last_used_at_to_built_hearth_amenities.rb b/db/migrate/20210527002712_add_last_used_at_to_built_hearth_amenities.rb new file mode 100644 index 0000000..7333ae5 --- /dev/null +++ b/db/migrate/20210527002712_add_last_used_at_to_built_hearth_amenities.rb @@ -0,0 +1,5 @@ +class AddLastUsedAtToBuiltHearthAmenities < ActiveRecord::Migration[6.1] + def change + add_column :built_hearth_amenities, :last_used_at, :timestamp + end +end diff --git a/db/schema.rb b/db/schema.rb index 74bb4e6..eae72c9 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_225100) do +ActiveRecord::Schema.define(version: 2021_05_27_002712) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -46,6 +46,7 @@ ActiveRecord::Schema.define(version: 2021_05_26_225100) do t.integer "level" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false + t.datetime "last_used_at" t.index ["hearth_amenity_id"], name: "index_built_hearth_amenities_on_hearth_amenity_id" t.index ["hearth_id"], name: "index_built_hearth_amenities_on_hearth_id" end -- cgit v1.2.3