> What does 001_create_products.rb look like?

It looks like this - is there something wrong with it?

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
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to