Skip to content

Instantly share code, notes, and snippets.

@guinslym
Created December 20, 2013 05:08
Show Gist options
  • Save guinslym/8050615 to your computer and use it in GitHub Desktop.
Save guinslym/8050615 to your computer and use it in GitHub Desktop.
This is how my altered DeviseCreate migration looks like
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 => ""
## Rememberable
t.datetime :remember_created_at
t.timestamps
end
add_index :users, :email, :unique => true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment