1
0
Fork 0

Fix state_id to stat_id

This commit is contained in:
Andrew Tomaka 2015-10-20 18:02:49 -04:00
parent 793e18a8f9
commit 1e7d000f72
2 changed files with 14 additions and 9 deletions

View file

@ -0,0 +1,5 @@
class FixStateToStat < ActiveRecord::Migration
def change
rename_column :stats, :state_type_id, :stat_type_id
end
end

View file

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20151020212132) do ActiveRecord::Schema.define(version: 20151020220202) do
create_table "awaken_types", force: :cascade do |t| create_table "awaken_types", force: :cascade do |t|
t.string "name" t.string "name"
@ -132,12 +132,12 @@ ActiveRecord::Schema.define(version: 20151020212132) do
t.integer "max", default: 0 t.integer "max", default: 0
t.integer "awaken_min", default: 0 t.integer "awaken_min", default: 0
t.integer "awaken_max", default: 0 t.integer "awaken_max", default: 0
t.integer "state_type_id" t.integer "stat_type_id"
t.datetime "created_at", null: false t.datetime "created_at", null: false
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
end end
add_index "stats", ["state_type_id"], name: "index_stats_on_state_type_id" add_index "stats", ["stat_type_id"], name: "index_stats_on_stat_type_id"
create_table "super_attacks", force: :cascade do |t| create_table "super_attacks", force: :cascade do |t|
t.string "name" t.string "name"