Files
site/db/migrate/20210423153453_create_wow_mounts.rb

21 lines
482 B
Ruby

class CreateWowMounts < ActiveRecord::Migration[6.1]
def change
create_table :wow_mounts do |t|
t.jsonb :name
t.string :source_type
t.jsonb :translated_source
t.string :faction
t.jsonb :translated_faction
t.jsonb :description
t.integer :mount_id, null: false
t.integer :creature_display_id
t.string :href
t.string :asset_zoom
t.timestamps
end
add_index :wow_mounts, :mount_id, unique: true
end
end