Add edit key to Parties table

This commit is contained in:
Justin Edmund 2023-01-31 00:28:58 -08:00
parent e13bc6f636
commit c4ae38a432
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class AddEditKeyToParties < ActiveRecord::Migration[7.0]
def change
add_column :parties, :edit_key, :string, unique: true, null: true
end
end

View file

@ -10,13 +10,12 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_01_30_114432) do
ActiveRecord::Schema[7.0].define(version: 2023_01_31_082521) do
# These are extensions that must be enabled in order to support this database
enable_extension "btree_gin"
enable_extension "pg_trgm"
enable_extension "pgcrypto"
enable_extension "plpgsql"
enable_extension "timescaledb"
create_table "app_updates", primary_key: "updated_at", id: :datetime, force: :cascade do |t|
t.string "update_type", null: false
@ -226,6 +225,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_01_30_114432) do
t.uuid "accessory_id"
t.integer "characters_count"
t.integer "summons_count"
t.string "edit_key"
t.index ["accessory_id"], name: "index_parties_on_accessory_id"
t.index ["job_id"], name: "index_parties_on_job_id"
t.index ["skill0_id"], name: "index_parties_on_skill0_id"