Sha256: 50696e85deb23ad727d06790945ec7a65e4d3371a9d2391a3d146665456d1d7c

Contents?: true

Size: 522 Bytes

Versions: 19

Compression:

Stored size: 522 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :email, null: false
      t.string :password_digest, null: false
      t.string :password_salt, null: false
      t.string :nickname
      t.datetime :confirmed_at
      t.string :confirmation_key
      t.datetime :confirmation_key_expired_at
      t.string :reset_password_key
      t.datetime :reset_password_key_expired_at

      t.timestamps null: false
    end
    add_index :users, :email, unique: true
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
nyauth-0.7.2 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.7.1 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.7.0 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.6.2 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.6.1 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.6.0 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.5.0 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.4.0 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.3.0 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.8 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.7 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.6 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.5 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.4 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.3 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.2 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.1 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.2.0 spec/dummy/db/migrate/20150303135922_create_users.rb
nyauth-0.1.0 spec/dummy/db/migrate/20150303135922_create_users.rb