add WowSpell

This commit is contained in:
2021-05-30 14:32:34 +02:00
parent df26a9ca6f
commit d0e5824d40
7 changed files with 79 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
class CreateWowSpells < ActiveRecord::Migration[6.1]
def change
create_table :wow_spells do |t|
t.integer :spell_id
t.jsonb :name
t.jsonb :description
t.integer :media_id
t.timestamps
end
add_index :wow_spells, :spell_id, unique: true
end
end

12
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_05_28_214602) do
ActiveRecord::Schema.define(version: 2021_05_30_121125) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -374,6 +374,16 @@ ActiveRecord::Schema.define(version: 2021_05_28_214602) do
t.index ["wow_reputation_tier_id"], name: "index_wow_reputations_on_wow_reputation_tier_id"
end
create_table "wow_spells", force: :cascade do |t|
t.integer "spell_id"
t.jsonb "name"
t.jsonb "description"
t.integer "media_id"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.index ["spell_id"], name: "index_wow_spells_on_spell_id", unique: true
end
create_table "wow_standings", force: :cascade do |t|
t.bigint "wow_character_id"
t.bigint "wow_reputation_id"