草庐IT

enhanced

全部标签

ruby - 如何在没有 rails 的情况下禁用 activerecord-oracle_enhanced-adapter 中的序列?

我只使用ActiveRecord对遗留Oracle数据库进行一些开发。我的适配器是activerecord-oracle_enhanced-adapter(https://github.com/rsim/oracle-enhanced)。所以我不想让AR处理主键生成。如何禁用序列生成的主键?classUser然后我得到了错误:stmt.c:230:inoci8lib_191.so:ORA-02289:sequencedoesnotexist(OCIError)当我将代码更改为classUser我得到另一个错误:stmt.c:230:inoci8lib_191.so:ORA-00936: