Sha256: 77295a9e6cf2c2a61300980b2fc9883969a4ea6135f95008676fb5dfeac42b71

Contents?: true

Size: 813 Bytes

Versions: 22

Compression:

Stored size: 813 Bytes

Contents

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

  def self.down
    drop_table :orders
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
kdmny-spree-0.0.1 db/migrate/008_create_orders.rb
spree-enriquez-0.9.4 db/migrate/008_create_orders.rb
spree-0.9.4 db/migrate/008_create_orders.rb
spree-0.9.3 db/migrate/008_create_orders.rb
spree-0.9.2 db/migrate/008_create_orders.rb
spree-0.9.1 db/migrate/008_create_orders.rb
spree-0.9.0 db/migrate/008_create_orders.rb
spree-0.8.4 db/migrate/008_create_orders.rb
spree-0.8.5 db/migrate/008_create_orders.rb
spree-0.0.9 db/migrate/008_create_orders.rb
spree-0.2.0 db/migrate/008_create_orders.rb
spree-0.4.1 db/migrate/008_create_orders.rb
spree-0.4.0 db/migrate/008_create_orders.rb
spree-0.5.0 db/migrate/008_create_orders.rb
spree-0.5.1 db/migrate/008_create_orders.rb
spree-0.6.0 db/migrate/008_create_orders.rb
spree-0.7.1 db/migrate/008_create_orders.rb
spree-0.7.0 db/migrate/008_create_orders.rb
spree-0.8.0 db/migrate/008_create_orders.rb
spree-0.8.1 db/migrate/008_create_orders.rb