18 lines
422 B
Ruby
18 lines
422 B
Ruby
class CreateWowReputations < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :wow_reputations do |t|
|
|
t.jsonb :name
|
|
t.string :href
|
|
t.string :faction
|
|
t.jsonb :translated_faction
|
|
t.jsonb :description
|
|
t.integer :reputation_id, null: false
|
|
t.belongs_to :wow_reputation_tier
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :wow_reputations, :reputation_id, unique: true
|
|
end
|
|
end
|