diff options
author | Ranjay Krishna <rak248@cornell.edu> | 2013-03-27 00:52:26 -0400 |
---|---|---|
committer | Ranjay Krishna <rak248@cornell.edu> | 2013-03-28 14:51:57 -0400 |
commit | 7c5e0035fa0b25ee5481ea81bc353ff18dd2d109 (patch) | |
tree | 38482f676fe55abc1c56f8eb7497c335c2279d36 /activerecord/lib | |
parent | 56edecbf24c7c05957ee64b25b2d3c957afca632 (diff) | |
download | rails-7c5e0035fa0b25ee5481ea81bc353ff18dd2d109.tar.gz rails-7c5e0035fa0b25ee5481ea81bc353ff18dd2d109.tar.bz2 rails-7c5e0035fa0b25ee5481ea81bc353ff18dd2d109.zip |
added comments to test_invalid_type in sqlite3 adapter test and added valid_type? method to abstract_adapter.rb and removed unnecessary method from sqlite3 adapter
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 4 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index 1915c444ef..2ccde15a26 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -101,6 +101,10 @@ module ActiveRecord @visitor = nil end + def valid_type?(type) + true + end + class SchemaCreation def initialize(conn) @conn = conn diff --git a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb index c3bebf7a5e..50d189d27a 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb @@ -499,10 +499,6 @@ module ActiveRecord rename_column_indexes(table_name, column_name, new_column_name) end - def valid_type?(type) - true - end - protected def select(sql, name = nil, binds = []) #:nodoc: exec_query(sql, name, binds) |