Skip to content

Instantly share code, notes, and snippets.

@v3rron
Created August 24, 2014 21:27
Show Gist options
  • Save v3rron/d178f4ac034b24952493 to your computer and use it in GitHub Desktop.
Save v3rron/d178f4ac034b24952493 to your computer and use it in GitHub Desktop.
Devise/Sequel User model migration
Sequel.migration do
change do
create_table :users do
primary_key :id
String :email
String :encrypted_password
String :reset_password_token
DateTime :reset_password_sent_at
DateTime :remember_created_at
Integer :sign_in_count, default: 0
DateTime :current_sign_in_at
DateTime :last_sign_in_at
String :confirmation_token
DateTime :confirmed_at
DateTime :confirmation_sent_at
String :unconfirmed_email
DateTime :created_at
DateTime :updated_at
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment