initial rebuild from v1
This commit is contained in:
19
db/migrate/20210422192043_create_wow_races.rb
Normal file
19
db/migrate/20210422192043_create_wow_races.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class CreateWowRaces < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :wow_races do |t|
|
||||
t.jsonb :name
|
||||
t.string :href
|
||||
t.string :faction
|
||||
t.jsonb :translated_faction
|
||||
t.boolean :is_selectable
|
||||
t.boolean :is_allied_race
|
||||
t.jsonb :male_name
|
||||
t.jsonb :female_name
|
||||
t.integer :race_id, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :wow_races, :race_id, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user