diff --git a/db/migrate/20220306131942_add_slug_to_raids.rb b/db/migrate/20220306131942_add_slug_to_raids.rb new file mode 100644 index 0000000..41c6ab1 --- /dev/null +++ b/db/migrate/20220306131942_add_slug_to_raids.rb @@ -0,0 +1,5 @@ +class AddSlugToRaids < ActiveRecord::Migration[6.1] + def change + add_column :raids, :slug, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index b6fd2d6..373dd48 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: 2022_03_04_115434) do +ActiveRecord::Schema.define(version: 2022_03_06_131942) do # These are extensions that must be enabled in order to support this database enable_extension "pgcrypto" @@ -155,6 +155,7 @@ ActiveRecord::Schema.define(version: 2022_03_04_115434) do t.integer "level" t.integer "group" t.integer "element" + t.string "slug" end create_table "summons", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|