diff options
author | yui-knk <spiketeika@gmail.com> | 2016-03-24 20:03:43 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2016-03-24 20:45:23 +0900 |
commit | cf570d7d0153283d2175b7330270d94291884864 (patch) | |
tree | 2ff43614ead7e934d4bb9e96b9c1da69cbf8012d /activerecord/test/fixtures/courses.yml | |
parent | 878c2bbaaf21f88543e75d4a986652d128ea8448 (diff) | |
download | rails-cf570d7d0153283d2175b7330270d94291884864.tar.gz rails-cf570d7d0153283d2175b7330270d94291884864.tar.bz2 rails-cf570d7d0153283d2175b7330270d94291884864.zip |
Change for `ActiveRecord::Migration.[]` to raise `ArgumentError` instead of `RuntimeError`
The error is raised because user passed invalid version number to a public api of
`ActiveRecord`, so `ArgumentError` is more suitable.
And add a test case checking if an error is raised when unknown migration version
is passed, because these test cases are not implemented.
Diffstat (limited to 'activerecord/test/fixtures/courses.yml')
0 files changed, 0 insertions, 0 deletions