2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-03-29 09:04:26 +02:00
|
|
|
class RemoveRoleColumnsOnUser < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
# (The safety_assured block validates that the columns to remove are ignored in the model, which is the case.)
|
|
|
|
safety_assured do
|
|
|
|
remove_column :users, :administrateur_id
|
|
|
|
remove_column :users, :instructeur_id
|
|
|
|
remove_column :users, :expert_id
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|