Sha256: d405bb0abd0cbebc37f4f6e93261e2497da664d37935753bf0a582e0c9ecc1d9

Contents?: true

Size: 241 Bytes

Versions: 62

Compression:

Stored size: 241 Bytes

Contents

class CreateProducts < ActiveRecord::Migration
  def change
    create_table :products do |t|
      t.references :vendor, index: true
      t.string :title
      t.decimal :price
      t.boolean :active

      t.timestamps
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
tabulatr2-0.10.4 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.10.3 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.10.2 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.10.1 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.10.0 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.48 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.47 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.46 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.45 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.44 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.43 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.42 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.41 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.40 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.39 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.38 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.37 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.36 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.35 spec/dummy/db/migrate/20130730132321_create_products.rb
tabulatr2-0.9.34 spec/dummy/db/migrate/20130730132321_create_products.rb