chef/supermarket

View on GitHub
src/supermarket/db/migrate/20140320153919_create_supported_platforms.rb

Summary

Maintainability
A
25 mins
Test Coverage
class CreateSupportedPlatforms < ActiveRecord::Migration[4.2]
  def change
    create_table :supported_platforms do |t|
      t.string :name, null: false
      t.string :version_constraint, null: false, default: '>= 0.0.0'
      t.references :cookbook_version, index: true, null: false

      t.timestamps
    end
  end
end