Sha256: 3cfd0320ec98e681561e957ee1488039bb7d2505932e0f4e0ead8028a4f169ca

Contents?: true

Size: 274 Bytes

Versions: 2

Compression:

Stored size: 274 Bytes

Contents

class CreatePeople < ActiveRecord::Migration
  def change
    create_table :people do |t|
      t.string :first_name
      t.string :last_name
      t.string :sex, limit: 1 # enum: m, f, o (other)
      t.date :date_of_birth
      t.timestamps null: false
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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