Sha256: 22336a21eaf17e167c489257d521cf045cc3ad758d70cc0b0bdc883a9b1dda7b

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 Bytes

Contents

class CreateBouquetStorages < ActiveRecord::Migration[5.0]
  def change
    create_table :bouquet_storages do |t|
      t.string :state
      t.date :date
      t.integer :initial_quantity
      t.references :stock, 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/20160111072002_create_bouquet_storages.rb
bouquet-0.2.1 core/db/migrate/20160111072002_create_bouquet_storages.rb
bouquet-0.2.0 core/db/migrate/20160111072002_create_bouquet_storages.rb