Sha256: 5de94b607e6b3a4a2bc51b0af9b609b8aed1058a86695cd07f58b375ccb18e06

Contents?: true

Size: 484 Bytes

Versions: 3

Compression:

Stored size: 484 Bytes

Contents

class CreateDbPeople < ActiveRecord::Migration[5.0]
  def change
    create_table :db_people do |t|
      
      t.string :label #name
      t.integer :age
      t.integer :height #inches
      t.string :hair_color
      t.string :eye_color
      t.boolean :alive 
      t.float :weight
      t.float :mass
      t.string :gender
      t.text :description      
      t.string :people_type # human readable type such as man, woman, boy, girl etc

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dreaming_god-0.1.3 db/migrate/20170322154419_create_db_people.rb
dreaming_god-0.1.2 db/migrate/20170322154419_create_db_people.rb
dreaming_god-0.1.1 db/migrate/20170322154419_create_db_people.rb