add creature and base rp_world
This commit is contained in:
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