Fix state_id to stat_id
This commit is contained in:
parent
793e18a8f9
commit
1e7d000f72
2 changed files with 14 additions and 9 deletions
5
db/migrate/20151020220202_fix_state_to_stat.rb
Normal file
5
db/migrate/20151020220202_fix_state_to_stat.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class FixStateToStat < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
rename_column :stats, :state_type_id, :stat_type_id
|
||||||
|
end
|
||||||
|
end
|
18
db/schema.rb
18
db/schema.rb
|
@ -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"
|
||||||
|
@ -128,16 +128,16 @@ ActiveRecord::Schema.define(version: 20151020212132) do
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "stats", force: :cascade do |t|
|
create_table "stats", force: :cascade do |t|
|
||||||
t.integer "min", default: 0
|
t.integer "min", default: 0
|
||||||
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"
|
||||||
|
|
Loading…
Reference in a new issue