Sha256: 4eee64a1c5888344b6bafb22b7a6bba3abd7c25c13a5744dc4f7f13dcc5f7f09
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 KB
Contents
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :email t.string :encrypted_password t.string :remember_token t.datetime :remember_created_at t.string :confirmation_token t.datetime :confirmation_sent_at t.datetime :confirmed_at t.string :reset_password_token t.datetime :reset_password_sent_at t.string :session_token t.string :authentication_token t.datetime :authentication_token_created_at t.integer :sign_in_count, :default => 0 t.string :last_sign_in_at t.string :last_sign_in_ip t.string :current_sign_in_at t.string :current_sign_in_ip end add_index :users, :email, :unique => true add_index :users, :remember_token, :unique => true add_index :users, :confirmation_token, :unique => true add_index :users, :reset_password_token, :unique => true add_index :users, :session_token, :unique => true add_index :users, :authentication_token, :unique => true end def self.down drop_table :users end end
Version data entries
6 entries across 6 versions & 1 rubygems