Files
site/db/migrate/20210530135118_create_wow_covenants.rb
2021-05-30 17:49:54 +02:00

15 lines
306 B
Ruby

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