add everything to manage reputations
This commit is contained in:
17
db/migrate/20210430164825_create_wow_reputations.rb
Normal file
17
db/migrate/20210430164825_create_wow_reputations.rb
Normal 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
|
||||
Reference in New Issue
Block a user