Sha256: 8e637e61de48dc3efd6f3dd839295ec717288956bcfd195ba59f7afea677dc63

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

class CreateUsers < ActiveRecord::Migration
  def self.up
    create_table :users do |t|
      t.string :email,              :null => false, :default => ""
      t.string :username
      t.string :first_name
      t.string :middle_name
      t.string :last_name
      t.integer :sex
      t.date :birthdate

      t.timestamps
    end
  end

  def self.down
    drop_table :users
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
personhood-0.2.0 spec/dummy/db/migrate/20121022000000_create_users.rb
personhood-0.1.2 spec/dummy/db/migrate/20121022000000_create_users.rb