* [gentoo-commits] proj/council-webapp:master commit in: site/db/, site/
@ 2011-07-21 16:06 Petteri Räty
0 siblings, 0 replies; only message in thread
From: Petteri Räty @ 2011-07-21 16:06 UTC (permalink / raw
To: gentoo-commits
commit: 70e7a3efbae388ca189ecc8c1b10619201f41d01
Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
AuthorDate: Mon Jul 18 21:26:18 2011 +0000
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Thu Jul 21 09:00:34 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=70e7a3ef
Use custom change in hobo to solve problem with db:reset task
---
site/Gemfile.lock | 2 +-
site/db/seeds.rb | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/site/Gemfile.lock b/site/Gemfile.lock
index d2a4c5a..277f060 100644
--- a/site/Gemfile.lock
+++ b/site/Gemfile.lock
@@ -1,6 +1,6 @@
GIT
remote: git://github.com/ahenobarbi/hobo.git
- revision: b33a9a69a2e1ce09b98c00ecee6c51bd1459fee5
+ revision: c9c13eb614a3c4a699a59d02e4757c2cdd682988
branch: rails3
specs:
dryml (1.3.0)
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)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-21 16:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-21 16:06 [gentoo-commits] proj/council-webapp:master commit in: site/db/, site/ Petteri Räty
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox