diff options
author | Wei Xie <xieconnect@gmail.com> | 2010-06-06 10:14:09 +0800 |
---|---|---|
committer | Hans de Graaff <hans@degraaff.org> | 2010-07-25 09:08:51 +0200 |
commit | 854029152445e65fa67a59d49721801a8ee654df (patch) | |
tree | 4f489226a6e7e45ed8246f55b6b031a7246b2854 /db/seeds.rb | |
parent | import User data from db:seed (diff) | |
download | council-webapp-854029152445e65fa67a59d49721801a8ee654df.tar.gz council-webapp-854029152445e65fa67a59d49721801a8ee654df.tar.bz2 council-webapp-854029152445e65fa67a59d49721801a8ee654df.zip |
Agenda implemented and tested
Diffstat (limited to 'db/seeds.rb')
-rw-r--r-- | db/seeds.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/seeds.rb b/db/seeds.rb index 5882a4b..cd12661 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -31,3 +31,24 @@ users = User.create([ :password => 'developer', :password_confirmation => 'developer'} ]) + +puts 'adding agendas...' +agendas = Agenda.create([ + { :name => 'Go to the Zoo', + :description => 'Disneyland', + :start_at => 15.days.from_now, + :end_at => 16.days.from_now, + :owner_id => users[1].id}, + + { :name => 'hosting a party', + :description => 'HIT', + :start_at => 15.days.from_now, + :end_at => 16.days.from_now, + :owner_id => users[1].id}, + + { :name => 'agenda_test_name', + :description => 'agenda_test_description', + :start_at => 15.days.from_now, + :end_at => 16.days.from_now, + :owner_id => users[1].id} +]) |