1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-30 19:52:20 +01:00

Fix a bug: Missing of description of PlanCategory migration

This commit is contained in:
Du Peng 2022-05-17 16:45:17 +02:00
parent 3703900ceb
commit 41d931aba0
4 changed files with 9 additions and 3 deletions

View File

@ -5,6 +5,7 @@
- Fix a bug: when machines module disabled, Associated machines is still shown in trainings list - Fix a bug: when machines module disabled, Associated machines is still shown in trainings list
- Fix a bug: script mount-proof-of-identity-files unable to modify docker-compose.yml - Fix a bug: script mount-proof-of-identity-files unable to modify docker-compose.yml
- Fix a bug: Event reservation calendar encoding in mail - Fix a bug: Event reservation calendar encoding in mail
- Fix a bug: Missing of description of PlanCategory migration
## v5.4.0 2022 May 12 ## v5.4.0 2022 May 12

View File

@ -6,5 +6,5 @@
# - plan_category # - plan_category
# - plan # - plan
class PlanCategory < ApplicationRecord class PlanCategory < ApplicationRecord
has_many :plan, dependent: :nullify has_many :plans, dependent: :nullify
end end

View File

@ -0,0 +1,5 @@
class AddDescriptionToPlanCategory < ActiveRecord::Migration[5.2]
def change
add_column :plan_categories, :description, :text
end
end

View File

@ -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: 2022_05_09_105714) do ActiveRecord::Schema.define(version: 2022_05_17_140916) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "fuzzystrmatch" enable_extension "fuzzystrmatch"
@ -1021,8 +1021,8 @@ ActiveRecord::Schema.define(version: 2022_05_09_105714) do
t.boolean "is_allow_newsletter" t.boolean "is_allow_newsletter"
t.inet "current_sign_in_ip" t.inet "current_sign_in_ip"
t.inet "last_sign_in_ip" t.inet "last_sign_in_ip"
t.string "mapped_from_sso"
t.datetime "validated_at" t.datetime "validated_at"
t.string "mapped_from_sso"
t.index ["auth_token"], name: "index_users_on_auth_token" t.index ["auth_token"], name: "index_users_on_auth_token"
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["email"], name: "index_users_on_email", unique: true t.index ["email"], name: "index_users_on_email", unique: true