Ignore:
Timestamp:
May 21, 2008, 10:02:39 PM (16 years ago)
Author:
KOBAYASHI, Shinji
Message:

add people scaffold

Location:
ruby/trunk/rails/cancerehr/db
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ruby/trunk/rails/cancerehr/db/migrate/001_create_users.rb

    r59 r60  
    11class CreateUsers < ActiveRecord::Migration
    22  def self.up
     3    options = {
     4      :options => "DEFAULT_CHAR_SET=utf8"
     5    }
    36    create_table :users do |t|
    47      t.column :name, :string
  • ruby/trunk/rails/cancerehr/db/schema.rb

    r57 r60  
    1010# It's strongly recommended to check this file into your version control system.
    1111
    12 ActiveRecord::Schema.define(:version => 1) do
     12ActiveRecord::Schema.define(:version => 2) do
     13
     14  create_table "people", :force => true do |t|
     15    t.string   "name"
     16    t.date     "birthday"
     17    t.string   "sex"
     18    t.datetime "created_at"
     19    t.datetime "updated_at"
     20  end
    1321
    1422  create_table "users", :force => true do |t|
Note: See TracChangeset for help on using the changeset viewer.