005_create_orders.rb from crlove at Krugle
Show 005_create_orders.rb syntax highlighted
class CreateOrders < ActiveRecord::Migration
def self.up
create_table :orders do |t|
t.column :name, :string
t.column :address, :text
t.column :email, :string
t.column :pay_type, :string, :limit => 10
end
end
def self.down
drop_table :orders
end
end
See more files for this project here