Running Rails 3.2.8, devise 2.1.2.
I noticed that the migration contains blank defaults:
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 => ""
......
But that schema.rb contains something else:
create_table "users", :force => true do |t|
t.string "email", :default => "''''", :null => false
t.string "encrypted_password", :default => "''''", :null => false
.....
And these defaults, '''', are showing up in my registration forms, etc. Why does this happen? Is there any risk to changing these defaults with another migration?
I think you can change the defaults with no problem.
One of my schema.rb file have this lines (which I think is working fine):