1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

anual_salary => annual_salary

This commit is contained in:
Vipul A M 2013-03-28 21:45:08 +05:30
parent 56edecbf24
commit 77a7382b08

View file

@ -55,10 +55,10 @@ module ActiveRecord
default_before = connection.columns("test_models").find { |c| c.name == "salary" }.default
assert_equal 70000, default_before
rename_column "test_models", "salary", "anual_salary"
rename_column "test_models", "salary", "annual_salary"
assert TestModel.column_names.include?("anual_salary")
default_after = connection.columns("test_models").find { |c| c.name == "anual_salary" }.default
assert TestModel.column_names.include?("annual_salary")
default_after = connection.columns("test_models").find { |c| c.name == "annual_salary" }.default
assert_equal 70000, default_after
end