diff options
author | Sean Griffin <sean@thoughtbot.com> | 2014-05-17 11:04:13 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2014-05-17 17:16:05 -0600 |
commit | 4bd5dffc85a4f3a660132eb85806a03fa5904e51 (patch) | |
tree | b14a3eecebc85ce6f70a49ee54a466e10912010e /activerecord/test/active_record | |
parent | 7359f8190d0ac97db077096796bdc582dffa90d8 (diff) | |
download | rails-4bd5dffc85a4f3a660132eb85806a03fa5904e51.tar.gz rails-4bd5dffc85a4f3a660132eb85806a03fa5904e51.tar.bz2 rails-4bd5dffc85a4f3a660132eb85806a03fa5904e51.zip |
Add a type object to Column constructor
Part of #15134. In order to perform typecasting polymorphically, we need
to add another argument to the constructor. The order was chosen to
match the `oid_type` on `PostgreSQLColumn`.
Diffstat (limited to 'activerecord/test/active_record')
-rw-r--r-- | activerecord/test/active_record/connection_adapters/fake_adapter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/active_record/connection_adapters/fake_adapter.rb b/activerecord/test/active_record/connection_adapters/fake_adapter.rb index 59324c4857..64cde143a1 100644 --- a/activerecord/test/active_record/connection_adapters/fake_adapter.rb +++ b/activerecord/test/active_record/connection_adapters/fake_adapter.rb @@ -29,6 +29,7 @@ module ActiveRecord @columns[table_name] << ActiveRecord::ConnectionAdapters::Column.new( name.to_s, options[:default], + lookup_cast_type(sql_type.to_s), sql_type.to_s, options[:null]) end |