This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/20210623064903_add_societe_id_to_admins.rb
2021-08-23 10:26:02 +02:00

12 lines
250 B
Ruby

class AddSocieteIdToAdmins < ActiveRecord::Migration[6.0]
def change
ar = AdminRole.create(:name => "Centre")
ar.admin_permissions.create(:name => "Accès centre")
add_column :admins, :societe_id, :integer
end
end