数据库字段更新,输入不变

Database field update, input doesn't change

Rails 4.1.1 Ruby2.1.2

我已经使用以下迁移更新了我的生产数据库...

class UpdateLimitOnCustomerNameField < ActiveRecord::Migration
  def up
    def change
      change_column :customers, :name, :string, :limit => 30
    end
  end
  def down
    change_column :customers, :name, :string, :limit => 12
  end
end

我的 "db/schema.rb" 文件已更新...

create_table "customers", force: true do |t|
  t.string   "name",  limit: 30
  ...etc...
end

当我在 MySQL workbench 中查看我的数据库时,我看到字段的长度已更新为 30。

但是当我访问网站上的表格时,我得到了这个...

<input id="customer_name" maxlength="12" name="customer[name]" type="text">

为什么输入字段没有更新到新的最大长度?

感谢您的任何建议。

我已经一年多没有在 rails 网站上工作了。我还需要更新资产(即使我只添加了一个迁移文件)。

rake assets:precompile RAILS_ENV=production