Sha256: f494e522151368d2e6c3926b1d4ff99f1f4ced77395476382ebb6619a6c8ce5a

Contents?: true

Size: 292 Bytes

Versions: 1

Compression:

Stored size: 292 Bytes

Contents

class CreatePeople < ActiveRecord::Migration
  def change
    create_table :people do |t|
      t.string :first_name
      t.string :last_name
      t.integer :sex, limit: 1 # enum: 0 => M, 1 => F, 2 => Undisclosed
      t.date :date_of_birth
      t.timestamps null: false
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kadmin-0.1.4 test/dummy/db/migrate/20161006114509_create_people.rb