Duplicate column name error when running migration
Whenever I run a migration in my Rails app, I get an error from SQLite3: SQLite3::SQLException: duplicate column name: photo_file_name: ALTER TABLE "users" ADD "photo_file_name" varchar(255) I already have a "Add Photo to User" migration. Here it is: class AddAttachmentPhotoToUsers < ActiveRecord::Migration def self.up change_table :users do |t| t.has_attached_file :photo end end def self.down drop_attached_file :users, :photo end end And here is the user migration: class CreateUsers < ActiveRecord::Migration def change create_table :users do |t| t.string :name t.string :title t.string