Sha256: 451254bd02ff1dc8f68a76a95423340782f4a05f88865a5668f20bf723f56930

Contents?: true

Size: 559 Bytes

Versions: 8

Compression:

Stored size: 559 Bytes

Contents

class CreateComableOrders < ActiveRecord::Migration
  def change
    create_table :comable_orders do |t|
      t.references :user
      t.string :guest_token
      t.string :code
      t.string :email
      t.integer :payment_fee, null: false, default: 0
      t.integer :shipment_fee, null: false, default: 0
      t.integer :total_price
      t.references :bill_address
      t.references :ship_address
      t.string :state
      t.datetime :completed_at
      t.timestamps null: false
    end

    add_index :comable_orders, :code, unique: true
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
comable-core-0.7.1 db/migrate/20140723175431_create_comable_orders.rb
comable-core-0.7.0 db/migrate/20140723175431_create_comable_orders.rb
comable-core-0.7.0.beta2 db/migrate/20140723175431_create_comable_orders.rb
comable-core-0.7.0.beta1 db/migrate/20140723175431_create_comable_orders.rb
comable-core-0.6.0 db/migrate/20140723175431_create_comable_orders.rb
comable_core-0.5.0 db/migrate/20140723175431_create_comable_orders.rb
comable_core-0.4.2 db/migrate/20140723175431_create_comable_orders.rb
comable_core-0.4.1 db/migrate/20140723175431_create_comable_orders.rb