You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a migration do a safety_assured and within the block call a remove_column with 4 arguments.
e.g:
safety_assured do
remove_column :users, :first_name, :boolean, null: false, default: false
end
the 4th arguments is a hash containing null: false and default: false
error:
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
wrong number of arguments (given 4, expected 2..3)
I've been looking at recent commits that were supplied, but wasn't able to find in which one this issue was introduced.
The text was updated successfully, but these errors were encountered:
Benaaaaa
changed the title
Version 2.2.1+ not allowing remove_column to contain 4 or more arguments
Version 2.2.1+ not allowing remove_column to contain 4 arguments
Sep 28, 2023
Hey, I've proposed a solution. Someone from Doctolib has to review it to be merged tho
I'm not surprised you didn't find the commit, it's quite hidden. I believe it was introduced because I added remove_column to the list of retriable statements, which is a one line change and is quite hidden.
Steps to reproduce:
safety_assured
and within the block call a remove_column with 4 arguments.e.g:
the 4th arguments is a hash containing null: false and default: false
error:
I've been looking at recent commits that were supplied, but wasn't able to find in which one this issue was introduced.
The text was updated successfully, but these errors were encountered: