Sha256: 62bb9d01d8e662fa690bceec9713ecfe868f2400bd552dbbd941b5d4c6e46f75

Contents?: true

Size: 198 Bytes

Versions: 10

Compression:

Stored size: 198 Bytes

Contents

class AddColumnThatAllowsNil < (Rails::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[4.2] : ActiveRecord::Migration)
  def change
    add_column :products, :optional_price_cents, :integer
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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