When calling the create_table method, you can specify {:id => false} to prevent Rails from using a primary key column.
In the Oracle JDBC adapter, the "execute" portion of the code is stopped from running if options[:id] == false.
But, some of the pre-setup parts still get run.
One of the "pre-setup" parts is a length check of the Oracle Sequence, and this will raise
an ActiveRecord::StatementInvalid. Even if the sequence is not intended to be created.
This patch now wraps both the "pre-setup" sequence name validation, and the execution with the options[:id]
check.
|