Rails 5 after ran migration limit is gone in schema

Viewed 733

Recently I upgraded my application from Rails 4.2 to Rails 5.0.3. Then I am trying to run a migration:

class AddInvitationToJoinToContests < ActiveRecord::Migration
  def change
    add_column :goods, :new_field, :string
  end
end

The migration ran correctly, but other table fields's limit option are gone:

create_table "users", force: :cascade do |t|
-    t.string   "name",               limit: 191, null: false
-    t.string   "language",           limit: 191
-    t.string   "image_id",           limit: 191
+    t.string   "name",               null: false
+    t.string   "language"
+    t.string   "image_id"
end

Any idea why?

Related issue:

1 Answers
Related