添加到用户模型时,迁移到heroku未定义(设计)

时间:2013-04-11 00:01:43

标签: ruby-on-rails ruby-on-rails-3 heroku devise

我在我的用户模型中添加了'area'属性(我正在使用设计)。这个迁移适用于localhost,我运行了heroku rake db:migrate - 当我推送到heroku时,它在注册页面上显示错误信息

ActionView::Template::Error (undefined method `area' for #<User:0x00000006589520>)

我的注册视图有:

<%= f.input :area, label: "Specialty" %>

db migration:

class AddAreaColumnToUsers < ActiveRecord::Migration
  def change
    add_column :users, :area, :string
  end
end

我错过了heroku迁移的某些部分吗?

0 个答案:

没有答案