Sha256: a554735c00fb67d10c745f5f8318be9114515c298a2cc5449a131ea02ded3347

Contents?: true

Size: 336 Bytes

Versions: 3

Compression:

Stored size: 336 Bytes

Contents

class CreateBouquetStocks < ActiveRecord::Migration[5.0]
  def change
    create_table :bouquet_stocks do |t|
      t.string :state
      t.date :date
      t.integer :quantity
      t.references :arrival, index: true, foreign_key: true
      t.references :location, 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/20160108155753_create_bouquet_stocks.rb
bouquet-0.2.1 core/db/migrate/20160108155753_create_bouquet_stocks.rb
bouquet-0.2.0 core/db/migrate/20160108155753_create_bouquet_stocks.rb