continue to backport old code
This commit is contained in:
20
db/migrate/20210423153453_create_wow_mounts.rb
Normal file
20
db/migrate/20210423153453_create_wow_mounts.rb
Normal file
@@ -0,0 +1,20 @@
|
||||
class CreateWowMounts < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_mounts do |t|
|
||||
t.jsonb :name
|
||||
t.string :source_type
|
||||
t.jsonb :translated_source
|
||||
t.string :faction
|
||||
t.jsonb :translated_faction
|
||||
t.jsonb :description
|
||||
t.integer :mount_id, null: false
|
||||
t.integer :creature_display_id
|
||||
t.string :href
|
||||
t.string :asset_zoom
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wow_mounts, :mount_id, unique: true
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
class CreateUserObtainWowMounts < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :user_obtain_wow_mounts do |t|
|
||||
t.belongs_to :user
|
||||
t.belongs_to :wow_mount
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
18
db/migrate/20210423153730_create_wow_pet_abilities.rb
Normal file
18
db/migrate/20210423153730_create_wow_pet_abilities.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
class CreateWowPetAbilities < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_pet_abilities do |t|
|
||||
t.integer :ability_id
|
||||
t.jsonb :name
|
||||
t.string :battle_pet_type
|
||||
t.jsonb :translated_battle_pet_type
|
||||
t.integer :battle_pet_type_id
|
||||
t.integer :rounds
|
||||
t.string :media
|
||||
t.string :href
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wow_pet_abilities, :ability_id, unique: true
|
||||
end
|
||||
end
|
||||
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
|
||||
@@ -0,0 +1,9 @@
|
||||
class CreateLearnedWowPetAbilities < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :learned_wow_pet_abilities do |t|
|
||||
t.belongs_to :wow_pet
|
||||
t.belongs_to :wow_pet_ability
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
9
db/migrate/20210423153941_create_user_obtain_wow_pets.rb
Normal file
9
db/migrate/20210423153941_create_user_obtain_wow_pets.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class CreateUserObtainWowPets < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :user_obtain_wow_pets do |t|
|
||||
t.belongs_to :user
|
||||
t.belongs_to :wow_pet
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
82
db/schema.rb
generated
82
db/schema.rb
generated
@@ -10,11 +10,20 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_04_22_193459) do
|
||||
ActiveRecord::Schema.define(version: 2021_04_23_153941) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "learned_wow_pet_abilities", force: :cascade do |t|
|
||||
t.bigint "wow_pet_id"
|
||||
t.bigint "wow_pet_ability_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["wow_pet_ability_id"], name: "index_learned_wow_pet_abilities_on_wow_pet_ability_id"
|
||||
t.index ["wow_pet_id"], name: "index_learned_wow_pet_abilities_on_wow_pet_id"
|
||||
end
|
||||
|
||||
create_table "mobility_string_translations", force: :cascade do |t|
|
||||
t.string "locale", null: false
|
||||
t.string "key", null: false
|
||||
@@ -40,6 +49,24 @@ ActiveRecord::Schema.define(version: 2021_04_22_193459) do
|
||||
t.index ["translatable_id", "translatable_type", "locale", "key"], name: "index_mobility_text_translations_on_keys", unique: true
|
||||
end
|
||||
|
||||
create_table "user_obtain_wow_mounts", force: :cascade do |t|
|
||||
t.bigint "user_id"
|
||||
t.bigint "wow_mount_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["user_id"], name: "index_user_obtain_wow_mounts_on_user_id"
|
||||
t.index ["wow_mount_id"], name: "index_user_obtain_wow_mounts_on_wow_mount_id"
|
||||
end
|
||||
|
||||
create_table "user_obtain_wow_pets", force: :cascade do |t|
|
||||
t.bigint "user_id"
|
||||
t.bigint "wow_pet_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["user_id"], name: "index_user_obtain_wow_pets_on_user_id"
|
||||
t.index ["wow_pet_id"], name: "index_user_obtain_wow_pets_on_wow_pet_id"
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "email"
|
||||
t.string "encrypted_password"
|
||||
@@ -119,6 +146,59 @@ ActiveRecord::Schema.define(version: 2021_04_22_193459) do
|
||||
t.index ["class_id"], name: "index_wow_classes_on_class_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_mounts", force: :cascade do |t|
|
||||
t.jsonb "name"
|
||||
t.string "source_type"
|
||||
t.jsonb "translated_source"
|
||||
t.string "faction"
|
||||
t.jsonb "translated_faction"
|
||||
t.jsonb "description"
|
||||
t.integer "mount_id", null: false
|
||||
t.integer "creature_display_id"
|
||||
t.string "href"
|
||||
t.string "asset_zoom"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["mount_id"], name: "index_wow_mounts_on_mount_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_pet_abilities", force: :cascade do |t|
|
||||
t.integer "ability_id"
|
||||
t.jsonb "name"
|
||||
t.string "battle_pet_type"
|
||||
t.jsonb "translated_battle_pet_type"
|
||||
t.integer "battle_pet_type_id"
|
||||
t.integer "rounds"
|
||||
t.string "media"
|
||||
t.string "href"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["ability_id"], name: "index_wow_pet_abilities_on_ability_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_pets", force: :cascade 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.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["pet_id"], name: "index_wow_pets_on_pet_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_races", force: :cascade do |t|
|
||||
t.jsonb "name"
|
||||
t.string "href"
|
||||
|
||||
Reference in New Issue
Block a user