1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record/railties
Philippe Guay 14739b5e27 Fixes #28359
Add stronger assertions to rake migration tasks to make sure the user is providing a numeric VERSION
An empty string was getting converted to version = 0. This would in turn pass the presence check.

Address linting warning

Add test for rake task and refactor code to meet expectations
In particular passing VERSION=0 should not raise an error.

Addressed Comments for PR #28485. Trimmed empty lines + change of wording for error message

Adjust test for change of wording in error message

Change condition to follow rails idioms
2017-03-26 21:06:02 -04:00
..
console_sandbox.rb Revert "Merge pull request #12085 from valk/master" 2013-09-03 12:18:41 -03:00
controller_runtime.rb Privatize unneededly protected methods in Active Record 2016-12-24 23:39:36 +09:00
databases.rake Fixes #28359 2017-03-26 21:06:02 -04:00
jdbcmysql_error.rb applies remaining conventions across the project 2016-08-06 20:20:22 +02:00