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
|
||||
Reference in New Issue
Block a user