Files
site/db/migrate/20210422191934_create_wow_realms.rb

20 lines
422 B
Ruby

class CreateWowRealms < ActiveRecord::Migration[6.1]
def change
create_table :wow_realms do |t|
t.jsonb :name
t.string :href
t.string :slug
t.jsonb :category
t.string :locale
t.string :timezone
t.jsonb :realm_type
t.boolean :is_tournament
t.integer :realm_id, null: false
t.timestamps
end
add_index :wow_realms, :realm_id, unique: true
end
end