demarches-normaliennes/db/migrate/20161205110427_create_table_preference_devise_profil.rb

12 lines
372 B
Ruby
Raw Normal View History

2016-12-05 12:07:33 +01:00
class CreateTablePreferenceDeviseProfil < ActiveRecord::Migration
def change
create_table :preference_devise_profils do |t|
t.string :last_current_devise_profil
end
add_belongs_to :preference_devise_profils, :administrateurs
add_belongs_to :preference_devise_profils, :gestionnaires
add_belongs_to :preference_devise_profils, :users
end
end