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
{{ message }}
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
$ bin/rails db:migrate
== 20170519014052 AddAttachmentAttachmentToNotes: migrating ===================
-- change_table(:notes)
rails aborted!
StandardError: An error has occurred, this and all later migrations canceled:
wrong number of arguments (given 3, expected 2)
To fix it, lib/paperclip/schema.rb#attachment should be modified like this.
Paperclip is currently undergoing deprecation in favor of ActiveStorage. Maintainers of this repository will no longer be tending to new issues. We're leaving the issues page open so Paperclip users can still see & search through old issues, and continue existing discussions if they wish.
The text was updated successfully, but these errors were encountered:
For example the below migration file exists.
This occurs a migration error as below.
$ bin/rails db:migrate == 20170519014052 AddAttachmentAttachmentToNotes: migrating =================== -- change_table(:notes) rails aborted! StandardError: An error has occurred, this and all later migrations canceled: wrong number of arguments (given 3, expected 2)
To fix it,
lib/paperclip/schema.rb#attachment
should be modified like this.I commited this to my forked repository.
https://github.com/nikukyugamer/paperclip/tree/fix/wrong-number-of-arguments_in_attachement-type
Deprecation notice
Paperclip is currently undergoing deprecation in favor of ActiveStorage. Maintainers of this repository will no longer be tending to new issues. We're leaving the issues page open so Paperclip users can still see & search through old issues, and continue existing discussions if they wish.
The text was updated successfully, but these errors were encountered: