add everything to manage reputations

This commit is contained in:
2021-05-01 00:22:15 +02:00
parent ca80fd55fa
commit d227cdc87c
30 changed files with 366 additions and 43 deletions

View File

@@ -0,0 +1,17 @@
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