diff options
author | David Gay <david@davidgay.org> | 2021-05-26 20:57:47 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-05-26 20:57:47 -0400 |
commit | 8cec9b3f6f277399c6da23a04d8afb0c68cf8a2b (patch) | |
tree | 749356642343c8f7ad2e20f7d3d94fe709c26725 /db | |
parent | 920b9a66eb2d7e7810c16f1d9b70d65a19736487 (diff) |
Basic usage of hearth amenities
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20210527002712_add_last_used_at_to_built_hearth_amenities.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
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 |