Permalink
Browse files

add rake task for cl

  • Loading branch information...
1 parent 491516c commit e037374cbbbd8dac8a3cdd6360ef89bc5e1ba472 @geraldb geraldb committed Sep 17, 2012
Showing with 29 additions and 0 deletions.
  1. +18 −0 db/seeds/uss/others_pools2.rb
  2. +11 −0 lib/tasks/load_uss_others.rake
@@ -0,0 +1,18 @@
+# encoding: utf-8
+
+puts "*** loading seed data in seeds/uss/pools_others2.rb"
+
+##############
+## Pools
+
+cl_2012_13 = Event.find_by_key!( 'cl.2012/13' )
+
+# nn = User.find_by_key!( 'nn' )
+
+ande = User.find_by_key!( 'ande' )
+
+
+Pool.create!( :event => cl_2012_13, :title => 'USS', :user => ande, :welcome => '' )
+
+## todo: use new version constant for app module e.g. Wettpool::VERSION ??
+Prop.create!( :key => 'db.seeds.uss.pools.others2.version', :value => '1' )
@@ -11,6 +11,17 @@ task :load_uss_others => [:environment] do |t|
end
+desc "wettpool: load seed data for uss cl pool"
+task :load_uss_cl => [:environment] do |t|
+
+ ['cl/teams', 'cl/cl_2012_13',
+ 'uss/others_pools2' ].each do |seed|
+ require "#{Rails.root}/db/seeds/#{seed}.rb"
+ end
+
+end
+
+
desc "wettpool: load data for uss other pools (others_data.txt)"
task :load_uss_others_data => [:environment] do |t|

0 comments on commit e037374

Please sign in to comment.