Sha256: b6da66001f8565d0abfb64caa7037c3e07680945088ea3468657c30d5b46b7dc

Contents?: true

Size: 427 Bytes

Versions: 13

Compression:

Stored size: 427 Bytes

Contents

class CreateUsers < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :users do |t|
      t.timestamps null: false
      t.string :email, null: false
      t.string :encrypted_password, limit: 128, null: false
      t.string :confirmation_token, limit: 128
      t.string :remember_token, limit: 128, null: false
    end

    add_index :users, :email
    add_index :users, :remember_token
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
clearance-2.0.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.0.0.beta2 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.0.0.beta1 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-1.17.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-1.16.2 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-1.16.1 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.16.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.15.1 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.15.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.14.2 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.14.1 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.14.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb
clearance-1.13.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb