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
thoughtbot-shoulda-2.0.4 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.0.5 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.0.6 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.10.0 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.10.1 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.10.2 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.9.0 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.9.1 test/rails_root/db/migrate/009_create_products.rb
thoughtbot-shoulda-2.9.2 test/rails_root/db/migrate/009_create_products.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails3_root/db/migrate/009_create_products.rb
dirty_history-0.7.3 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/db/migrate/009_create_products.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails3_root/db/migrate/009_create_products.rb
dirty_history-0.7.2 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/db/migrate/009_create_products.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/db/migrate/009_create_products.rb
dirty_history-0.7.1 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails3_root/db/migrate/009_create_products.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/db/migrate/009_create_products.rb
dirty_history-0.7.0 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails3_root/db/migrate/009_create_products.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails3_root/db/migrate/009_create_products.rb
dirty_history-0.6.7 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/db/migrate/009_create_products.rb
dirty_history-0.6.6 dirty_history/ruby/1.9.1/gems/shoulda-2.11.3/test/rails2_root/db/migrate/009_create_products.rb