Why is db:migrate failing when i try to add attachment fields for paperclip?
The migration that was created for me doesn't use the t.has_attached_file terminology anymore, it actually adds the columns explicitly. The migration would be created by running:
rails generate paperclip Answer diagram
Check out the example here.
This worked for me
def change
create_table :some_table do |t|
t.attachment :avatar
t.timestamps
end
end