diff --git a/db/migrate/20210827082814_rename_column_type_by_name_in_p_spec_types.rb b/db/migrate/20210827082814_rename_column_type_by_name_in_p_spec_types.rb new file mode 100644 index 0000000..4b890e8 --- /dev/null +++ b/db/migrate/20210827082814_rename_column_type_by_name_in_p_spec_types.rb @@ -0,0 +1,5 @@ +class RenameColumnTypeByNameInPSpecTypes < ActiveRecord::Migration[6.0] + def change + rename_column :p_spec_types, :type, :name + end +end diff --git a/db/schema.rb b/db/schema.rb index 7edf151..fc2f026 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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