Rename type column
This commit is contained in:
parent
b1df8ad4c5
commit
c1d3c255ee
@ -0,0 +1,5 @@
|
|||||||
|
class RenameColumnTypeByNameInPSpecTypes < ActiveRecord::Migration[6.0]
|
||||||
|
def change
|
||||||
|
rename_column :p_spec_types, :type, :name
|
||||||
|
end
|
||||||
|
end
|
@ -10,7 +10,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: 2021_08_27_074812) do
|
ActiveRecord::Schema.define(version: 2021_08_27_082814) do
|
||||||
|
|
||||||
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||||
t.string "name"
|
t.string "name"
|
||||||
@ -1990,7 +1990,7 @@ ActiveRecord::Schema.define(version: 2021_08_27_074812) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
create_table "p_spec_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
create_table "p_spec_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
|
||||||
t.string "type"
|
t.string "name"
|
||||||
t.datetime "created_at", precision: 6, null: false
|
t.datetime "created_at", precision: 6, null: false
|
||||||
t.datetime "updated_at", precision: 6, null: false
|
t.datetime "updated_at", precision: 6, null: false
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user