Sha256: a072153886c7640eaa514ac1aec90a3228c4c36843bb35a16c62569ddbbc9b78

Contents?: true

Size: 620 Bytes

Versions: 5

Compression:

Stored size: 620 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
comable_core-0.3.4 db/migrate/20140723175431_create_comable_orders.rb
comable_core-0.3.3 db/migrate/20140723175431_create_comable_orders.rb
comable_core-0.3.2 db/migrate/20140723175431_create_comable_orders.rb
comable_core-0.3.1 db/migrate/20140723175431_create_comable_orders.rb
comable_core-0.3.0 db/migrate/20140723175431_create_comable_orders.rb