Methods
Attributes
| [R] | connection |
Instance Public methods
setup()
Link
teardown()
Link
test_change_string_to_date()
Link
# File activerecord/test/cases/adapters/postgresql/change_schema_test.rb, line 20 def test_change_string_to_date connection.change_column :strings, :somedate, :timestamp, using: 'CAST("somedate" AS timestamp)' assert_equal :datetime, connection.columns(:strings).find { |c| c.name == 'somedate' }.type end
test_change_type_with_symbol()
Link
# File activerecord/test/cases/adapters/postgresql/change_schema_test.rb, line 25 def test_change_type_with_symbol connection.change_column :strings, :somedate, :timestamp, cast_as: :timestamp assert_equal :datetime, connection.columns(:strings).find { |c| c.name == 'somedate' }.type end