On 06/19/2012 02:18 PM, jprovazn(a)redhat.com wrote:
From: Jan Provaznik<jprovazn(a)redhat.com>
---
...06200000_fix_session_id_for_session_entities.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/db/migrate/20120606200000_fix_session_id_for_session_entities.rb
b/src/db/migrate/20120606200000_fix_session_id_for_session_entities.rb
index 5d8a22a..227fc5e 100644
--- a/src/db/migrate/20120606200000_fix_session_id_for_session_entities.rb
+++ b/src/db/migrate/20120606200000_fix_session_id_for_session_entities.rb
@@ -34,7 +34,7 @@ class FixSessionIdForSessionEntities< ActiveRecord::Migration
def self.down
add_column :session_entities, :session_db_id, :integer
SessionEntity.reset_column_information
- SessionEntity.each do |se|
+ SessionEntity.all.each do |se|
session = ActiveRecord::SessionStore::Session.find_by_session_id(se.session_id)
if session
se.session_db_id = session.id
Self-ACK & pushed