demarches-normaliennes/db/migrate/20220323120846_remove_role_columns_on_user.rb
2024-08-22 09:26:48 +02:00

12 lines
390 B
Ruby

# frozen_string_literal: true
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