Sha256: 7aa23a4fcaaeb31e651ab35e18fb6ff73e6cf742692e447137ccaeca665e08c8
Contents?: true
Size: 520 Bytes
Versions: 3
Compression:
Stored size: 520 Bytes
Contents
#--- # Excerpted from "Agile Web Development with Rails, 2nd Ed." # We make no guarantees that this code is fit for any purpose. # Visit http://www.pragmaticprogrammer.com/titles/rails2 for more book information. #--- 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
amrita2-2.0.0 | sample/depot/db/migrate/005_create_orders.rb |
amrita2-2.0.1 | sample/depot/db/migrate/005_create_orders.rb |
amrita2-2.0.2 | sample/depot/db/migrate/005_create_orders.rb |