initial rebuild from v1

This commit is contained in:
2021-04-22 22:31:23 +02:00
commit cc8cf4954d
152 changed files with 11559 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
class CreateWowCharacters < ActiveRecord::Migration[6.1]
def change
create_table :wow_characters do |t|
t.belongs_to :user
t.belongs_to :wow_realm
t.belongs_to :wow_class
t.belongs_to :wow_race
t.belongs_to :wow_character_title
t.string :name
t.string :gender
t.jsonb :translated_gender
t.string :faction
t.jsonb :translated_faction
t.integer :character_id, null: false
t.integer :level
t.integer :account_id
t.integer :achievements_points
t.timestamp :last_login_timestamp
t.integer :average_item_level
t.integer :equipped_item_level
t.string :href
t.timestamps
end
add_index :wow_characters, :character_id, unique: true
end
end