add creature and base rp_world
This commit is contained in:
11
db/migrate/20210602152828_create_rp_worlds.rb
Normal file
11
db/migrate/20210602152828_create_rp_worlds.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateRpWorlds < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :rp_worlds do |t|
|
||||
t.string :name
|
||||
t.string :description
|
||||
t.belongs_to :user
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,12 @@
|
||||
class CreateWowCharacterPlayRpWorlds < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_character_play_rp_worlds do |t|
|
||||
t.string :status
|
||||
t.string :role
|
||||
t.belongs_to :wow_character
|
||||
t.belongs_to :rp_world
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
13
db/migrate/20210602192708_create_wow_creature_families.rb
Normal file
13
db/migrate/20210602192708_create_wow_creature_families.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateWowCreatureFamilies < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_creature_families do |t|
|
||||
t.integer :creature_family_id
|
||||
t.jsonb :name
|
||||
t.integer :media_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wow_creature_families, :creature_family_id, unique: true
|
||||
end
|
||||
end
|
||||
12
db/migrate/20210602192916_create_wow_creature_types.rb
Normal file
12
db/migrate/20210602192916_create_wow_creature_types.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateWowCreatureTypes < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_creature_types do |t|
|
||||
t.integer :creature_type_id
|
||||
t.jsonb :name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wow_creature_types, :creature_type_id, unique: true
|
||||
end
|
||||
end
|
||||
16
db/migrate/20210602193023_create_wow_creatures.rb
Normal file
16
db/migrate/20210602193023_create_wow_creatures.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class CreateWowCreatures < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_creatures do |t|
|
||||
t.integer :creature_id
|
||||
t.jsonb :name
|
||||
t.boolean :is_tameable
|
||||
t.integer :display_id
|
||||
t.belongs_to :wow_creature_family
|
||||
t.belongs_to :wow_creature_type
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wow_creatures, :creature_id, unique: true
|
||||
end
|
||||
end
|
||||
53
db/schema.rb
generated
53
db/schema.rb
generated
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_05_30_151735) do
|
||||
ActiveRecord::Schema.define(version: 2021_06_02_193023) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -49,6 +49,15 @@ ActiveRecord::Schema.define(version: 2021_05_30_151735) do
|
||||
t.index ["translatable_id", "translatable_type", "locale", "key"], name: "index_mobility_text_translations_on_keys", unique: true
|
||||
end
|
||||
|
||||
create_table "rp_worlds", force: :cascade do |t|
|
||||
t.string "name"
|
||||
t.string "description"
|
||||
t.bigint "user_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["user_id"], name: "index_rp_worlds_on_user_id"
|
||||
end
|
||||
|
||||
create_table "user_obtain_wow_mounts", force: :cascade do |t|
|
||||
t.bigint "user_id"
|
||||
t.bigint "wow_mount_id"
|
||||
@@ -95,6 +104,17 @@ ActiveRecord::Schema.define(version: 2021_05_30_151735) do
|
||||
t.index ["wow_character_id"], name: "index_wow_character_media_on_wow_character_id"
|
||||
end
|
||||
|
||||
create_table "wow_character_play_rp_worlds", force: :cascade do |t|
|
||||
t.string "status"
|
||||
t.string "role"
|
||||
t.bigint "wow_character_id"
|
||||
t.bigint "rp_world_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["rp_world_id"], name: "index_wow_character_play_rp_worlds_on_rp_world_id"
|
||||
t.index ["wow_character_id"], name: "index_wow_character_play_rp_worlds_on_wow_character_id"
|
||||
end
|
||||
|
||||
create_table "wow_character_titles", force: :cascade do |t|
|
||||
t.jsonb "name"
|
||||
t.string "href"
|
||||
@@ -171,6 +191,37 @@ ActiveRecord::Schema.define(version: 2021_05_30_151735) do
|
||||
t.index ["covenant_id"], name: "index_wow_covenants_on_covenant_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_creature_families", force: :cascade do |t|
|
||||
t.integer "creature_family_id"
|
||||
t.jsonb "name"
|
||||
t.integer "media_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["creature_family_id"], name: "index_wow_creature_families_on_creature_family_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_creature_types", force: :cascade do |t|
|
||||
t.integer "creature_type_id"
|
||||
t.jsonb "name"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["creature_type_id"], name: "index_wow_creature_types_on_creature_type_id", unique: true
|
||||
end
|
||||
|
||||
create_table "wow_creatures", force: :cascade do |t|
|
||||
t.integer "creature_id"
|
||||
t.jsonb "name"
|
||||
t.boolean "is_tameable"
|
||||
t.integer "display_id"
|
||||
t.bigint "wow_creature_family_id"
|
||||
t.bigint "wow_creature_type_id"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["creature_id"], name: "index_wow_creatures_on_creature_id", unique: true
|
||||
t.index ["wow_creature_family_id"], name: "index_wow_creatures_on_wow_creature_family_id"
|
||||
t.index ["wow_creature_type_id"], name: "index_wow_creatures_on_wow_creature_type_id"
|
||||
end
|
||||
|
||||
create_table "wow_geo_maps", force: :cascade do |t|
|
||||
t.integer "map_id"
|
||||
t.jsonb "name"
|
||||
|
||||
Reference in New Issue
Block a user