20 lines
440 B
Ruby
20 lines
440 B
Ruby
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
|