Sha256: 6a7308ce65a0263aa736ca337c48653f0770a9a4d59ded51c9b964ee70170c5c
Contents?: true
Size: 1.37 KB
Versions: 300
Compression:
Stored size: 1.37 KB
Contents
class CreateUsers < ActiveRecord::Migration def self.up create_table :users, :force => true do |t| t.string :login t.string :email t.string :first_name t.string :last_name t.string :crypted_password t.string :password_salt 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.boolean :terms_of_service, :default => false, :null => false t.string :time_zone, :default => "UTC" t.datetime :disabled_at t.datetime :created_at t.datetime :activated_at t.datetime :updated_at t.string :identity_url t.string :url_key end add_index :users, :login add_index :users, :email add_index :users, :persistence_token add_index :users, :last_request_at end def self.down drop_table :users end end
Version data entries
300 entries across 261 versions & 14 rubygems