initial rebuild from v1
This commit is contained in:
19
db/migrate/20210422191934_create_wow_realms.rb
Normal file
19
db/migrate/20210422191934_create_wow_realms.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user