diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-05-19 17:18:17 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-05-19 17:18:17 +0200 |
commit | 4273554c5fcff8f49a2c81d3d5926f5c007f6e4c (patch) | |
tree | e22d197ed7d828dad7f249d8878a8fb8cff1ebd2 /activerecord/lib/active_record/connection_adapters/type/text.rb | |
parent | a0eec57ef0fbbbb2910a46ca65bd5b565ca0534c (diff) | |
parent | 0b682e4b05c8f58c77c655650af6638c483ac903 (diff) | |
download | rails-4273554c5fcff8f49a2c81d3d5926f5c007f6e4c.tar.gz rails-4273554c5fcff8f49a2c81d3d5926f5c007f6e4c.tar.bz2 rails-4273554c5fcff8f49a2c81d3d5926f5c007f6e4c.zip |
Merge pull request #15158 from sgrif/sg-delegate-type
Delegate `Column#type` to the injected type object
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/type/text.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/type/text.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/type/text.rb b/activerecord/lib/active_record/connection_adapters/type/text.rb new file mode 100644 index 0000000000..ee5842a3fc --- /dev/null +++ b/activerecord/lib/active_record/connection_adapters/type/text.rb @@ -0,0 +1,13 @@ +require 'active_record/connection_adapters/type/string' + +module ActiveRecord + module ConnectionAdapters + module Type + class Text < String # :nodoc: + def type + :text + end + end + end + end +end |