Rename type column

This commit is contained in:
Barnabé 2021-08-27 10:29:37 +02:00
parent b1df8ad4c5
commit c1d3c255ee
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
class RenameColumnTypeByNameInPSpecTypes < ActiveRecord::Migration[6.0]
def change
rename_column :p_spec_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_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|
t.string "name"
@ -1990,7 +1990,7 @@ ActiveRecord::Schema.define(version: 2021_08_27_074812) do
end
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 "updated_at", precision: 6, null: false
end