Fix schema issue
This commit is contained in:
parent
daceb1d21c
commit
600fcef87d
2 changed files with 25 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
class AddVerifiedToCards < ActiveRecord::Migration
|
class AddVerifiedToCards < ActiveRecord::Migration
|
||||||
def change
|
def change
|
||||||
add_column :cards, :verified, :bool, default: false
|
add_column :cards, :verified, :boolean, default: false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
26
db/schema.rb
26
db/schema.rb
|
@ -19,8 +19,30 @@ ActiveRecord::Schema.define(version: 20151014155435) do
|
||||||
t.datetime "updated_at", null: false
|
t.datetime "updated_at", null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
# Could not dump table "cards" because of following NoMethodError
|
create_table "cards", force: :cascade do |t|
|
||||||
# undefined method `[]' for nil:NilClass
|
t.integer "character_id"
|
||||||
|
t.integer "rarity_id"
|
||||||
|
t.integer "type_id"
|
||||||
|
t.integer "leader_skill_id"
|
||||||
|
t.integer "passive_skill_id"
|
||||||
|
t.integer "super_attack_id"
|
||||||
|
t.integer "dokkan_id"
|
||||||
|
t.string "title"
|
||||||
|
t.string "gameid", default: "0000000"
|
||||||
|
t.datetime "created_at", null: false
|
||||||
|
t.datetime "updated_at", null: false
|
||||||
|
t.integer "awaken_type_id"
|
||||||
|
t.boolean "verified", default: false
|
||||||
|
end
|
||||||
|
|
||||||
|
add_index "cards", ["awaken_type_id"], name: "index_cards_on_awaken_type_id"
|
||||||
|
add_index "cards", ["character_id"], name: "index_cards_on_character_id"
|
||||||
|
add_index "cards", ["dokkan_id"], name: "index_cards_on_dokkan_id"
|
||||||
|
add_index "cards", ["leader_skill_id"], name: "index_cards_on_leader_skill_id"
|
||||||
|
add_index "cards", ["passive_skill_id"], name: "index_cards_on_passive_skill_id"
|
||||||
|
add_index "cards", ["rarity_id"], name: "index_cards_on_rarity_id"
|
||||||
|
add_index "cards", ["super_attack_id"], name: "index_cards_on_super_attack_id"
|
||||||
|
add_index "cards", ["type_id"], name: "index_cards_on_type_id"
|
||||||
|
|
||||||
create_table "cards_links", id: false, force: :cascade do |t|
|
create_table "cards_links", id: false, force: :cascade do |t|
|
||||||
t.integer "card_id"
|
t.integer "card_id"
|
||||||
|
|
Loading…
Reference in a new issue