Sha256: 5bb5a5e0621ce605fdabb7ec6d878eec375e66299965c06959c81d0ba1328753

Contents?: true

Size: 755 Bytes

Versions: 13

Compression:

Stored size: 755 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users, :force => true do |t|
      t.string :uid, :null => false, :limit => 10
      t.string :first_name, :limit => 60
      t.string :last_name, :limit => 60
      t.string :first_last_name, :limit => 100
      t.string :email, :limit => 256
      t.string :phone, :limit => 30
      t.boolean :inactive, :null => false, :default => false
      t.boolean :admin, :null => false, :default => false
      t.datetime :last_login_at
      t.datetime :last_request_at
      t.datetime :last_logout_at
      t.timestamps
    end
    
    add_index :users, :uid, :unique => true
    add_index :users, :first_name
    add_index :users, :last_name
    add_index :users, :email
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ucb_rails-0.0.14 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.13 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.12 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.11 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.10 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.9 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.8 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.7 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.6 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.5 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.4 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.3 lib/generators/ucb_rails/templates/db/migrate/create_users.rb
ucb_rails-0.0.2 lib/generators/ucb_rails/templates/db/migrate/create_users.rb