changeset 9: | 5cf82beef889 |
author: | moriq@moriq.com |
date: | Mon Mar 10 03:22:11 2008 +0900 (16 years ago) |
permissions: | -rw-r--r-- |
description: | add scaffold product. |
1class CreateProducts < ActiveRecord::Migration2 def self.up3 create_table :products do |t|4 t.string :name5 t.integer :price67 t.timestamps8 end9 end1011 def self.down12 drop_table :products13 end14end