Skip to content

Instantly share code, notes, and snippets.

@andrius
Forked from v3rron/20140824204154_create_users.rb
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrius/3da407cd0486cd4dd463 to your computer and use it in GitHub Desktop.
Save andrius/3da407cd0486cd4dd463 to your computer and use it in GitHub Desktop.
class CreateUsers
end
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