我在我的用户模型中添加了'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迁移的某些部分吗?