Sha256: 95f852a2e81639ef82e11ad0067d47a461c98d5e190926e58f842d1e2d5271cf

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

class CreateBouquetPurchaseOrders < ActiveRecord::Migration[5.0]
  def change
    create_table :bouquet_purchase_orders do |t|
      t.string :state
      t.date :date
      t.integer :quantity
      t.date :arrival_date
      t.references :material, index: true, foreign_key: true
      t.references :supplier, index: true, foreign_key: true

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bouquet-0.2.2 core/db/migrate/20160108155711_create_bouquet_purchase_orders.rb
bouquet-0.2.1 core/db/migrate/20160108155711_create_bouquet_purchase_orders.rb
bouquet-0.2.0 core/db/migrate/20160108155711_create_bouquet_purchase_orders.rb