summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-06-05 18:33:05 -0400
committerDavid Gay <david@davidgay.org>2021-06-05 18:33:05 -0400
commit05c602a3ff76ddffd01bbe7f3ec6a75781a3551d (patch)
tree20f03ca515ca8b453b19687fb4ef99401b3943da /db
parentabe016c4779d9247f6fde3c339eb3b8c7f6badc6 (diff)
Rename pig iron ingot
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20210605223042_rename_pig_iron_ingots.rb5
-rw-r--r--db/schema.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/db/migrate/20210605223042_rename_pig_iron_ingots.rb b/db/migrate/20210605223042_rename_pig_iron_ingots.rb
new file mode 100644
index 0000000..7a0c98e
--- /dev/null
+++ b/db/migrate/20210605223042_rename_pig_iron_ingots.rb
@@ -0,0 +1,5 @@
+class RenamePigIronIngots < ActiveRecord::Migration[6.1]
+ def change
+ Item.find_by_gid("pig_iron_ingot").update(gid: "crude_iron_ingot")
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 9e20579..9a41002 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_06_02_225942) do
+ActiveRecord::Schema.define(version: 2021_06_05_223042) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"