-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator make wrong migration for Oracle database #1242
Comments
Hi @ukolovda, thanks for your time to report this issue. Bug reports must use the issue template https://github.com/paper-trail-gem/paper_trail/blob/master/.github/ISSUE_TEMPLATE/bug-report.md, please update your issue in order to help us. |
@ukolovda what version of |
@marceloperini , I use |
Fixed on #1245 |
@ukolovda can you test this issue using the |
Thank you for your contribution!
Generated migration for table
versions
have typeinteger
for columnitem_id
.Latest Rails uses
bigint
for object ids.However it works fine for PostgreSQL and SQLite3.
But my test crash for Oracle database, because
t.integer :item_id, null: false, limit: 8
translated to type NUMBER(8), and have no space for 9-digits IDs from fixtures. (I use gemactiverecord-oracle_enhanced-adapter
)Describe the solution you'd like to build
Please, consider changing in migration generator for table
versions
fromt.integer :item_id, null: false, limit: 8
to
t.bigint :item_id, null: false
The text was updated successfully, but these errors were encountered: