Sha256: 27ace5dd2fbe396900b5aed425c324b9a1f459f8bb840f432499f3c1fc19ea13

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

class CreatePeople < ActiveRecord::Migration
  def change
    create_table :people do |t|
      t.string :first_name
      t.string :last_name
      t.string :gender, limit: 1 # enum: m, f, o (other)
      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.3.2 test/dummy/db/migrate/20161006114509_create_people.rb