Code Search for Developers
 
 
  

027_add_zip_code_to_order.rb from crlove at Krugle


Show 027_add_zip_code_to_order.rb syntax highlighted

class AddZipCodeToOrder < ActiveRecord::Migration
  def self.up
    add_column :orders, :zip_code, :string, :null => false, :limit => 6
  end

  def self.down
    remove_column :orders, :zip_code
  end
end




See more files for this project here

crlove

Online psychological-test-based friend-making system.

Project homepage: http://sourceforge.net/projects/crlove
Programming language(s): Java,JavaScript,Ruby,XML
License: other

  001_create_brands.rb
  002_create_categories.rb
  003_create_products.rb
  004_add_discount_to_product.rb
  005_add_detail_to_product.rb
  006_create_colors.rb
  007_add_number_of_pictures_to_color.rb
  008_add_sessions.rb
  009_add_quantity_available_to_product.rb
  010_create_users.rb
  011_create_orders.rb
  012_create_items.rb
  013_add_quantity_sold_to_product.rb
  014_add_name_to_order.rb
  015_add_address_to_order.rb
  016_add_email_to_order.rb
  017_add_name_to_user.rb
  018_add_email_to_user.rb
  019_add_primary_address_and_primary_zip_code_to_user.rb
  020_add_secondary_address_and_secondary_zip_code_to_user.rb
  021_add_thumb_image_to_product.rb
  022_add_medium_image_and_large_image_to_product.rb
  023_remove_product_id_from_item.rb
  024_add_name_to_item.rb
  025_add_new_and_best_to_product.rb
  026_add_phone_and_cell_phone_to_user.rb
  027_add_zip_code_to_order.rb
  028_add_phone_and_cell_phone_to_order.rb
  029_remove_email_from_order.rb
  030_add_sidebar_image_and_main_image_to_category.rb
  031_add_created_at_to_order.rb
  032_remove_sidebar_image_and_main_image_from_category.rb
  033_remove_medium_image_and_large_image_from_product.rb
  034_remove_thumb_image_from_product.rb