Sha256: 6e17d723048fd0e2f65c943bad512917cd26fb827d90c4108b5016c2643bddd8
Contents?: true
Size: 924 Bytes
Versions: 4
Compression:
Stored size: 924 Bytes
Contents
class CreateUsers < ActiveRecord::Migration def self.up create_table :users do |t| t.string :email, :null => false t.string :name, :null => false, :limit => 100 t.string :location, :limit => 150 t.string :crypted_password, :null => false t.string :password_salt, :null => false t.string :persistence_token, :null => false t.string :single_access_token, :null => false t.string :perishable_token, :null => false 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.timestamps end add_index :users, :email, :unique => true add_index :users, :perishable_token end def self.down drop_table :users end end
Version data entries
4 entries across 2 versions & 1 rubygems