Begrudgingly adding an element field to parties

Also added it in the JSON template
This commit is contained in:
Justin Edmund 2022-02-26 20:44:16 -08:00
parent 3f979f6d62
commit f5a4afc01d
3 changed files with 8 additions and 3 deletions

View file

@ -1,6 +1,6 @@
object :party
attributes :id, :user_id, :name, :description, :shortcode, :created_at, :updated_at
attributes :id, :user_id, :name, :description, :element, :shortcode, :created_at, :updated_at
node :is_extra do |p|
p.extra

View file

@ -0,0 +1,5 @@
class AddElementToParties < ActiveRecord::Migration[6.1]
def change
add_column :parties, :element, :integer
end
end

View file

@ -10,12 +10,11 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_02_25_014523) do
ActiveRecord::Schema.define(version: 2022_02_27_042147) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
enable_extension "timescaledb"
create_table "characters", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name_en"
@ -132,6 +131,7 @@ ActiveRecord::Schema.define(version: 2022_02_25_014523) do
t.string "name"
t.text "description"
t.uuid "raid_id"
t.integer "element"
t.index ["user_id"], name: "index_parties_on_user_id"
end