Displaying 1 result from an estimated 1 matches for "status_expir".
Did you mean:
status_expired
2006 Jul 01
0
activerecord generating wrong syntax with postgresql
...If I change it to this, it works:
bc = SECA::Backend::Certificate.find(:first, :conditions => ["id = ?",
options[:certificate_id]])
And this is the model:
module SECA
module Backend
class Certificate < ActiveRecord::Base
STATUS_VALID = 0
STATUS_REVOKED = 1
STATUS_EXPIRED = 2
has_one :data, :class_name => ''CertificateData'',
:foreign_key => ''certificate_id'', :dependent => true
#has_one :serial, :class_name => ''Serial'', :dependent => true,
# :foreign_key => ''i...