Begrudgingly adding an element field to parties
Also added it in the JSON template
This commit is contained in:
parent
3f979f6d62
commit
f5a4afc01d
3 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
5
db/migrate/20220227042147_add_element_to_parties.rb
Normal file
5
db/migrate/20220227042147_add_element_to_parties.rb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
class AddElementToParties < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
add_column :parties, :element, :integer
|
||||
end
|
||||
end
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue