class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string  :name,        :null => false, :limit => 100
      t.text    :description, :null => false
      t.string  :image_url,                   :limit => 400
      t.decimal :price,       :null => false, :precision => 8, :scale => 2
    end

    add_owner_access_control_keys_and_indexes_for :products

  end

  def self.down
    drop_table :products
  end
end

