hensei-api/db/migrate/20200913092001_create_parties.rb
Justin Edmund 7a104a50d4 Update parties table
Remove `characters`, `weapons` and `summons`
Rename `hash` to `shortcode`
Fix `belongs_to` by changing to `references`
2020-09-16 03:23:27 -07:00

11 lines
278 B
Ruby

class CreateParties < ActiveRecord::Migration[6.0]
def change
create_table :parties, id: :uuid, default: -> { "gen_random_uuid()" } do |t|
t.references :user, type: :uuid
t.string :shortcode
t.timestamps
end
end
end