source: ruby/trunk/rails/cancerehr/db/migrate/002_create_people.rb@ 60

Last change on this file since 60 was 60, checked in by KOBAYASHI, Shinji, 16 years ago

add people scaffold

File size: 513 bytes
Line 
1class CreatePeople < ActiveRecord::Migration
2 def self.up
3 create_table :people do |t|
4 t.column :legal_name, :string
5 t.column :other_name, :string
6 t.column :home_address, :string
7 t.column :postal_address, :string
8 t.column :home_contact, :string
9 t.column :phone_number, :string
10 t.column :sex, :string
11 t.column :date_of_birth, :date
12 t.column :place_of_birth, :string
13
14 t.timestamps
15 end
16 end
17
18 def self.down
19 drop_table :people
20 end
21end
Note: See TracBrowser for help on using the repository browser.