-
Notifications
You must be signed in to change notification settings - Fork 22.2k
Closed
Labels
Description
Steps to reproduce
- Create a migration
- Use
create_tableto add a table called:userslike this:
create_table :users, force: true do |t|
end
- Use
create_tableto add a table called:poststhat references:userslike this:
create_table :posts, force: true do |t|
t.references :users, nnull: false, uniqe: true
end
**** NOTE that 'nnull' and 'uniqe' are non-existent options!! ****
- Run the migration
I created a runnable gist to illustrate the issue here: https://gist.github.com/georgewambold/16ee14cb0e5ca77b35ff3c94b4537475
Expected behavior
An error should be raised
Actual behavior
The migration changes are commited without raising an error
System configuration
Rails version: 6.0.0.alpha
Ruby version: 2.5.1
Other notes
This is my first issue and I'd love to write the fix if the issue is accepted.
This issue is similar to issue 8104 and PR 32675
Reactions are currently unavailable