Sha256: 266cf158d6ba6b5f7ae2c61ba7ffac39d452b0736646d4a32441830216682a2c

Contents?: true

Size: 286 Bytes

Versions: 3

Compression:

Stored size: 286 Bytes

Contents

class CreateAsUserUsers < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :email, null: false
      t.string :name, limit: 100
      t.string :password_digest, limit: 60

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
as_user-0.0.4 db/migrate/20121213033825_create_as_user_users.rb
as_user-0.0.3 db/migrate/20121213033825_create_as_user_users.rb
as_user-0.0.2 db/migrate/20121213033825_create_as_user_users.rb