Sha256: cc65d3fe5454570968ba488e906cbc95fdfd12ab7ae74c2e0c30a92ee0ad4e7b
Contents?: true
Size: 688 Bytes
Versions: 7
Compression:
Stored size: 688 Bytes
Contents
# frozen_string_literal: true # This migration comes from cookbook (originally 20210909141929) # Uses acts as a polymorphic joining table with extras for context # For example, a Recipe might "use" Tools, Supplies, and Ingredients. class CreateUses < ActiveRecord::Migration[6.1] def change create_table :cookbook_uses do |t| t.boolean :published, default: true t.references :use_in, polymorphic: true, null: false t.references :use_of, polymorphic: true, null: false t.float :quantity_minimum t.float :quantity_maximum t.string :unit t.integer :sort t.string :note t.string :preparation t.timestamps end end end
Version data entries
7 entries across 7 versions & 1 rubygems