diff options
Diffstat (limited to 'activerecord/test/active_schema_test.rb')
-rw-r--r-- | activerecord/test/active_schema_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/test/active_schema_test.rb b/activerecord/test/active_schema_test.rb new file mode 100644 index 0000000000..d2617167a0 --- /dev/null +++ b/activerecord/test/active_schema_test.rb @@ -0,0 +1,14 @@ +require 'abstract_unit' + +class ActiveSchemaTest < Test::Unit::TestCase + def test_add_column_with_native_type_rejected + assert_raises ActiveRecord::UnknownTypeError do + add_column(:people, :varchar, :limit => 15) + end + end + + private + def method_missing(method_symbol, *arguments) + ActiveRecord::Base.connection.send(method_symbol, *arguments) + end +end
\ No newline at end of file |