search for: safe_record

Displaying 1 result from an estimated 1 matches for "safe_record".

2006 May 04
1
Multiple database problem in rails 1.1 ?
...onnection exactly as descripted in this document : http://blogs.pragprog.com/cgi-bin/pragdave.cgi/Tech/Ruby/Connections.rdoc The only problem is that my database (postgres) seems to be asked to find this parent class, but this should not have happend ! My Models looks like this : -- app/models/safe_record.rb class SafeRecord < ActiveRecord::Base establish_connection "safe_#{RAILS_ENV}" end -- app/models/event.rb class Event < SafeRecord end -- Taken from script/console when doing a "e = Event.new" ActiveRecord::StatementInvalid: PGError: ERROR: relation "safe_...