rename type (reserved)

This commit is contained in:
Barnabé 2021-08-26 17:01:28 +02:00
parent 02614f1ec2
commit fd0801b23d
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
class RenameColumnTypeByNameInPSerialNumTypes < ActiveRecord::Migration[6.0]
def change
rename_column :p_serial_num_types, :type, :name
end
end

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_08_26_140648) do
ActiveRecord::Schema.define(version: 2021_08_26_145816) do
create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t|
t.string "name"
@ -1878,7 +1878,7 @@ ActiveRecord::Schema.define(version: 2021_08_26_140648) do
end
create_table "p_serial_num_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 "updated_at", precision: 6, null: false
end