Add slug to raids table

This is for URL query params
This commit is contained in:
Justin Edmund 2022-03-06 05:50:51 -08:00
parent 62543858bd
commit 039bf85227
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddSlugToRaids < ActiveRecord::Migration[6.1]
def change
add_column :raids, :slug, :string
end
end

View file

@ -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|