Sha256: 806ef24e4e4f37d4bfe87849af5ee8955c5f8b60f1411e8d817b76e0f34627a7

Contents?: true

Size: 249 Bytes

Versions: 10

Compression:

Stored size: 249 Bytes

Contents

class CreateProducts < (Rails::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[4.2] : ActiveRecord::Migration)
  def change
    create_table :products do |t|
      t.integer :price_cents
      t.integer :discount

      t.timestamps
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
money-rails-1.15.0 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.14.0 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.13.4 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.13.3 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.13.2 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.13.1 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.13.0 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.12.0 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.11.0 spec/dummy/db/migrate/20120331190108_create_products.rb
money-rails-1.10.0 spec/dummy/db/migrate/20120331190108_create_products.rb