Sha256: a9ff7cbb604874c94a9fa169de72c8f0f03a102163b04f11e71dfa80ea0efc1b

Contents?: true

Size: 332 Bytes

Versions: 7

Compression:

Stored size: 332 Bytes

Contents

# frozen_string_literal: true

# Migration for Ingredients, like "Mushrooms"
class CreateIngredients < ActiveRecord::Migration[6.1]
  def change
    create_table :ingredients do |t|
      t.string :name
      t.text :description
      t.string :aisle
      t.string :store
      t.string :cost

      t.timestamps
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cookbook-0.1.6 spec/dummy/db/migrate/20210909181442_create_ingredients.rb
cookbook-0.1.5 spec/dummy/db/migrate/20210909181442_create_ingredients.rb
cookbook-0.1.4 spec/dummy/db/migrate/20210909181442_create_ingredients.rb
cookbook-0.1.3 spec/dummy/db/migrate/20210909181442_create_ingredients.rb
cookbook-0.1.2 spec/dummy/db/migrate/20210909181442_create_ingredients.rb
cookbook-0.1.1 spec/dummy/db/migrate/20210909181442_create_ingredients.rb
cookbook-0.1.0 spec/dummy/db/migrate/20210909181442_create_ingredients.rb