Ruby on rails 3 如何从heroku master中删除该文件
那我怎样才能纠正这个错误呢? 提前感谢。AddFilesizeToPapclip迁移尝试添加表papclips中已存在的数据库列文件大小 如果要手动删除此列,请尝试以下操作: 在Heroku应用程序上打开Rails控制台:Heroku run console 然后运行以下代码:ActiveRecord::Migration.remove\u列:papclips,:files\u file\u sizeRuby on rails 3 如何从heroku master中删除该文件,ruby-on-rails-3,heroku,Ruby On Rails 3,Heroku,那我怎样才能纠正这个错误呢? 提前感谢。AddFilesizeToPapclip迁移尝试添加表papclips中已存在的数据库列文件大小 如果要手动删除此列,请尝试以下操作: 在Heroku应用程序上打开Rails控制台:Heroku run console 然后运行以下代码:ActiveRecord::Migration.remove\u列:papclips,:files\u file\u size heroku rake db:migrate == AddFilesizeToPapclip
heroku rake db:migrate
== AddFilesizeToPapclip: migrating ===========================================
-- add_column(:papclips, :files_file_size, :string)
rake aborted!
An error has occurred, this and all later migrations canceled:
PG::DuplicateColumn: ERROR: column "files_file_size" of relation "papclips" already exists