hensei-api/db/migrate/20200913092024_create_grid_weapons.rb
2020-09-14 18:30:54 -07:00

16 lines
492 B
Ruby

class CreateGridWeapons < ActiveRecord::Migration[6.0]
def change
create_table :grid_weapons do |t|
t.belongs_to :composition, type: :uuid
t.references :weapon, type: :uuid
t.references :weapon_key1, class_name: 'WeaponKey', type: :uuid
t.references :weapon_key2, class_name: 'WeaponKey', type: :uuid
t.integer :uncap_level
t.integer :position
t.timestamps
end
end
end