Sha256: 2b72d712a9921d238a892e92b673afd475927b66c08686614d0ce34250155c30
Contents?: true
Size: 993 Bytes
Versions: 61
Compression:
Stored size: 993 Bytes
Contents
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :firstname t.string :lastname t.string :login t.string :email t.string :gender t.string :role t.string :language t.string :crypted_password, :limit => 128, :null => false, :default => "" t.string :password_salt, :limit => 128, :null => false, :default => "" t.integer :login_count, :null => false, :default => 0 t.integer :failed_login_count, :null => false, :default => 0 t.datetime :last_request_at t.datetime :current_login_at t.datetime :last_login_at t.string :current_login_ip t.string :last_login_ip t.string :persistence_token, :null => false t.string :single_access_token, :null => false t.string :perishable_token, :null => false t.timestamps t.userstamps end add_index :users, :perishable_token end def self.down drop_table :users end end
Version data entries
61 entries across 61 versions & 1 rubygems