diff options
| author | Xinhui | 2016-08-05 15:25:39 +0200 | 
|---|---|---|
| committer | Xinhui | 2016-08-05 15:25:43 +0200 | 
| commit | 96b1abb62d9ae34c9ee7b334c374476b78f82b9b (patch) | |
| tree | 5d732f165743511ca27e4049db8961232ae655af /db/seeds.rb | |
| parent | 6ad42c2e2aa43b18ec2d6d94b998c7e27e55ea78 (diff) | |
| download | chouette-core-96b1abb62d9ae34c9ee7b334c374476b78f82b9b.tar.bz2 | |
Refactoring - Rake task users:sync
Diffstat (limited to 'db/seeds.rb')
| -rw-r--r-- | db/seeds.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/db/seeds.rb b/db/seeds.rb index cee1e9f9a..11ca7e9c1 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -7,7 +7,7 @@  #   cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])  #   Mayor.create(:name => 'Emanuel', :city => cities.first) -stif = Organisation.find_or_create_by(name: "STIF") +stif = Organisation.find_or_create_by(name: "STIF", code: "STIF")  stif.users.find_or_create_by!(username: "admin") do |user|    user.email = 'stif-boiv@af83.com' | 
