Sha256: b8b661da44a1c971014806c84a9bb23a800cc38b2cd7e190789de658fa134d25

Contents?: true

Size: 1.17 KB

Versions: 8

Compression:

Stored size: 1.17 KB

Contents

class CreateOrders < ActiveRecord::Migration
  def self.up
	  create_table "orders", :force => true do |t|
      t.column "user_id",              :integer
      t.column "number",               :string, :limit => 15
      t.column "status",               :integer
      t.column "ship_method",          :integer
      t.column "ship_amount",          :decimal,                :precision => 8, :scale => 2, :default => 0.0, :null => false
      t.column "tax_amount",           :decimal,                :precision => 8, :scale => 2, :default => 0.0, :null => false
      t.column "item_total",           :decimal,                :precision => 8, :scale => 2, :default => 0.0, :null => false
      t.column "total",                :decimal,                :precision => 8, :scale => 2, :default => 0.0, :null => false
      t.column "ip_address",           :string, :limit => 11
      t.column "special_instructions", :text
      t.column "ship_address_id",      :integer
      t.column "bill_address_id",      :integer
      t.column "created_at",           :datetime
      t.column "updated_at",           :datetime
    end
  end

  def self.down
    drop_table "orders"
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/db/migrate/010_create_orders.rb
railscart-0.0.2 starter_app/vendor/plugins/railscart/db/migrate/010_create_orders.rb
railscart-0.0.3 starter_app/vendor/plugins/railscart/db/migrate/010_create_orders.rb
railscart-0.0.4 starter_app/vendor/plugins/railscart/db/migrate/008_create_orders.rb
spree-0.0.5 starter-app/vendor/plugins/spree/db/migrate/008_create_orders.rb
spree-0.0.6 starter-app/vendor/plugins/spree/db/migrate/008_create_orders.rb
spree-0.0.7 starter-app/vendor/plugins/spree/db/migrate/008_create_orders.rb
spree-0.0.8 starter-app/vendor/plugins/spree/db/migrate/008_create_orders.rb