Sha256: b54e516a75208b0cd25f86a26a05a6250d5beaf2887abf5a7e4adf20fc85ead7

Contents?: true

Size: 372 Bytes

Versions: 1

Compression:

Stored size: 372 Bytes

Contents

class Create<%= product_name.classify.pluralize %> < ActiveRecord::Migration
  def change
    create_table :<%= product_name.tableize %> do
      t.integer :price_in_cents
      t.boolean :for_sale, default: true
      t.boolean :keep_stock, default: false
      t.integer :number_in_stock
      t.datetime :for_sale_at
      t.datetime :not_for_sale_at
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bodega-0.2.0 lib/generators/bodega/product/templates/migration.rb