Files
site/db/migrate/20210530121125_create_wow_spells.rb
2021-05-30 14:32:34 +02:00

15 lines
291 B
Ruby

class CreateWowSpells < ActiveRecord::Migration[6.1]
def change
create_table :wow_spells do |t|
t.integer :spell_id
t.jsonb :name
t.jsonb :description
t.integer :media_id
t.timestamps
end
add_index :wow_spells, :spell_id, unique: true
end
end