Sha256: 36a2c13c02444087d8a3bd3acce949178b1b8d548b91ce011a2a8ef3495d2b8f
Contents?: true
Size: 489 Bytes
Versions: 3
Compression:
Stored size: 489 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 CreateProducts < ActiveRecord::Migration def self.up create_table :products do |t| t.column :title, :string t.column :description, :text t.column :image_url, :string end end def self.down drop_table :products end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
amrita2-2.0.0 | sample/depot/db/migrate/001_create_products.rb |
amrita2-2.0.1 | sample/depot/db/migrate/001_create_products.rb |
amrita2-2.0.2 | sample/depot/db/migrate/001_create_products.rb |