Displaying 1 result from an estimated 1 matches for "ad_courts_seq".
2010 Sep 27
0
problem with set_sequence_name please help
...'COURT_SEQ''
end
with rails console :
AdCourt.sequence_name I have got "COURT_SEQ" which look ok.
When
AdCourt.create!(:caption => ''AAAA'', :code => ''1111'', :version => 0,
:created_by_id => 0)
it''s still using "ad_courts_seq" which not exist.
ActiveRecord::StatementInvalid: ActiveRecord::ActiveRecordError:
ORA-02289: sequence does not exist
: select ad_courts_seq.nextval id from dual
from
/Users/cyberjom/.rvm/gems/jruby-1.5.2/gems/activerecord-3.0.0/lib/active_record/connection_adapters/abstract_adapter.rb:202...