appirits/comable

View on GitHub
core/db/migrate/20150423095210_create_comable_shipments.rb

Summary

Maintainability
A
50 mins
Test Coverage
class CreateComableShipments < ActiveRecord::Migration
  def change
    create_table :comable_shipments do |t|
      t.references :order, null: false
      t.references :shipment_method, null: false
      t.integer :fee, null: false
      t.string :state, null: false
      t.string :tracking_number
      t.datetime :completed_at
      t.timestamps null: false
    end
  end
end