Sha256: 2a8c18d4ecd4334e37c1b5350b942d1345429eab71e4511b3ef2fd639e574159

Contents?: true

Size: 537 Bytes

Versions: 10

Compression:

Stored size: 537 Bytes

Contents

class CreateUsers < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :users<%= migration_primary_key_type_string %> 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, :confirmation_token, unique: true
    add_index :users, :remember_token, unique: true
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
clearance-2.9.3 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.9.2 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.9.1 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.9.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.8.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.7.2 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.7.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.6.2 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.6.1 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb
clearance-2.6.0 lib/generators/clearance/install/templates/db/migrate/create_users.rb.erb