Sha256: 9e234b69e5a0157fa4e7d0e475d4aef5d613fecbb89e96cc4d4822a5bdbd21e1
Contents?: true
Size: 888 Bytes
Versions: 15
Compression:
Stored size: 888 Bytes
Contents
class HeadstartCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |t| t.string :email, :limit => 100 t.string :first_name, :limit => 50 t.string :last_name, :limit => 50 t.string :role, :limit => 50 t.string :encrypted_password, :limit => 128 t.string :salt, :limit => 128 t.string :remember_token, :limit => 128 t.string :facebook_uid, :limit => 50 t.string :password_reset_token, :limit => 128 t.string :confirmation_token, :limit => 128 t.boolean :email_confirmed, :default => false, :null => false t.timestamps end add_index :users, :email add_index :users, :remember_token add_index :users, :facebook_uid end def self.down drop_table :users end end
Version data entries
15 entries across 15 versions & 1 rubygems