Sha256: ab9f150f0546def698c207ee4f72834c251876a5a8b7c1cc370589924237100d

Contents?: true

Size: 514 Bytes

Versions: 14

Compression:

Stored size: 514 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change

    create_table :users do |t|
          t.string :email
          t.string :encrypted_password, limit: 128
          t.string :session_token, limit: 128
          t.datetime :current_sign_in_at
          t.string :current_sign_in_ip, limit: 128
          t.datetime :last_sign_in_at
          t.string :last_sign_in_ip, limit: 128
          t.integer :sign_in_count
        end

    add_index :users, :email
    add_index :users, :session_token
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
authenticate-0.7.1 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.7.0 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.6.1 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.6.0 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.5.0 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.4.0 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.3.3 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.3.2 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.3.1 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.3.0 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.2.3 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.2.2 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.2.1 spec/dummy/db/migrate/20160130192728_create_users.rb
authenticate-0.2.0 spec/dummy/db/migrate/20160130192728_create_users.rb