16 lines
492 B
Ruby
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
|