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:
parent
56edecbf24
commit
77a7382b08
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue