continue to backport old code
This commit is contained in:
27
db/migrate/20210423153806_create_wow_pets.rb
Normal file
27
db/migrate/20210423153806_create_wow_pets.rb
Normal file
@@ -0,0 +1,27 @@
|
||||
class CreateWowPets < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_pets do |t|
|
||||
t.jsonb :name
|
||||
t.integer :pet_id
|
||||
t.string :href
|
||||
t.string :battle_pet_type
|
||||
t.jsonb :translated_battle_pet_type
|
||||
t.integer :battle_pet_type_id
|
||||
t.jsonb :description
|
||||
t.boolean :is_capturable
|
||||
t.boolean :is_tradable
|
||||
t.boolean :is_battlepet
|
||||
t.boolean :is_alliance_only
|
||||
t.boolean :is_horde_only
|
||||
t.string :icon
|
||||
t.boolean :is_random_creature_display
|
||||
t.string :source_type
|
||||
t.jsonb :translated_source_type
|
||||
t.integer :creature_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wow_pets, :pet_id, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user