Rails 3.2.8、デバイス 2.1.2 を実行しています。
移行に空白のデフォルトが含まれていることに気付きました:
class DeviseCreateUsers < ActiveRecord::Migration
def change
create_table(:users) do |t|
## Database authenticatable
t.string :email, :null => false, :default => ""
t.string :encrypted_password, :null => false, :default => ""
......
しかし、その schema.rb には別のものが含まれています。
create_table "users", :force => true do |t|
t.string "email", :default => "''''", :null => false
t.string "encrypted_password", :default => "''''", :null => false
.....
そして、これらのデフォルトは''''
、登録フォームなどに表示されます。なぜこれが起こるのですか? これらのデフォルトを別の移行で変更するリスクはありますか?