diff --git a/db/migrate/20200913092001_create_parties.rb b/db/migrate/20200913092001_create_parties.rb index c2e23fb..2d773be 100644 --- a/db/migrate/20200913092001_create_parties.rb +++ b/db/migrate/20200913092001_create_parties.rb @@ -1,13 +1,9 @@ class CreateParties < ActiveRecord::Migration[6.0] def change - t.belongs_to :user, type: :uuid create_table :parties, id: :uuid, default: -> { "gen_random_uuid()" } do |t| + t.references :user, type: :uuid - t.string :hash - - t.string :characters, array: true, default: [] - t.string :weapons, array: true, default: [] - t.string :summons, array: true, default: [] + t.string :shortcode t.timestamps end