Sha256: b1ccbfd662552fa3de8d52ec7ca2c8da5ff97baf046995087772406d49e6ddef
Contents?: true
Size: 643 Bytes
Versions: 1
Compression:
Stored size: 643 Bytes
Contents
class ClearanceCreateUsers < ActiveRecord::Migration def self.up create_table(:users) do |t| t.string :email t.string :encrypted_password, :limit => 128 t.string :salt, :limit => 128 t.string :confirmation_token, :limit => 128 t.string :remember_token, :limit => 128 t.datetime :remember_token_expires_at t.boolean :email_confirmed, :default => false, :null => false t.timestamps end add_index :users, [:id, :confirmation_token] add_index :users, :email add_index :users, :remember_token end def self.down drop_table :users end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thoughtbot-clearance-0.8.0 | generators/clearance/templates/migrations/create_users.rb |