boissier_app/db/seeds.rb
Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

17 lines
887 B
Ruby

# -*- encoding : utf-8 -*-
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
# Mayor.create(:name => 'Daley', :city => cities.first)
Admin.create(:email => "n.bally@quartz-agence.com", :username => "quartz", :surname => "Bally", :firstname => "Nicolas", :password => "123456", :password_confirmation => "123456")
puts "Création du super admin"
Menu.create(:name => "Menu principal", :max_levels => 3)
puts "Création du menu principal"
Album.create(:name => "Photos diverses", :super_admin => true)
puts "Création du premier album"
FileFolder.create(:name => "Dossier principal", :super_admin => true)
puts "Création du premier dossier"