aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'site/db/seeds.rb')
-rw-r--r--site/db/seeds.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/site/db/seeds.rb b/site/db/seeds.rb
index 40e1a11..a6393c8 100644
--- a/site/db/seeds.rb
+++ b/site/db/seeds.rb
@@ -19,6 +19,11 @@ yml_seed_path = File.expand_path("../seed.yml", __FILE__)
yml_seed_file = File.open(yml_seed_path)
seed = YAML::load(yml_seed_file)
+[Agenda, AgendaItem, Participation, Proxy, User, Vote, VotingOption].each do |model|
+ # Refresh table_exists cache for all models
+ model.table_exists?(true)
+end
+
seed.each do |agenda_desc|
state = agenda_desc['state']
agenda = state.nil? ? nil : Factory(:agenda, :state => state)