Sha256: 8ea450907fb9ecfcc143dea1423d1b4503a5b16422471383ee852fddd0b2a33b

Contents?: true

Size: 297 Bytes

Versions: 292

Compression:

Stored size: 297 Bytes

Contents

class CreateProducts < ActiveRecord::Migration
  def self.up
    create_table :products do |t|
      t.string :title
      t.integer :price
      t.integer :weight
      t.string :size
      t.boolean :tangible

      t.timestamps
    end
  end

  def self.down
    drop_table :products
  end
end

Version data entries

292 entries across 171 versions & 30 rubygems

Version Path
shoulda-2.10.1 test/rails_root/db/migrate/009_create_products.rb
tpitale-shoulda-2.11.0 test/rails_root/db/migrate/009_create_products.rb
shoulda-2.10.2 test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.15 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.14 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.13 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.8 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.7 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.6 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.4 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.3 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb
poolparty-1.3.1 vendor/gems/shoulda/test/rails_root/db/migrate/009_create_products.rb