hyoshida/comable

View on GitHub
core/db/migrate/20150823071425_create_comable_variants.rb

Summary

Maintainability
A
0 mins
Test Coverage
class CreateComableVariants < ActiveRecord::Migration
  def change
    create_table :comable_variants do |t|
      t.references :product, null: false
      t.integer :price, null: false, default: 0
      t.string :sku
      t.timestamps null: false
    end
  end
end