diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-02 19:03:32 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-07-02 19:03:32 -0700 |
commit | 970c311432d66fec4c07ee93a78e6f2101b8fd6d (patch) | |
tree | 8513c9063ebec9c86e8d314b30b15b073588a99d /activerecord/lib | |
parent | bf12c35087b1112b37340274104ff1ec62b3c118 (diff) | |
parent | 341b73965d796ab4f04a4053735409ae34dfcf6c (diff) | |
download | rails-970c311432d66fec4c07ee93a78e6f2101b8fd6d.tar.gz rails-970c311432d66fec4c07ee93a78e6f2101b8fd6d.tar.bz2 rails-970c311432d66fec4c07ee93a78e6f2101b8fd6d.zip |
Merge pull request #11258 from frodsan/remove_deprecated_distinct
Remove deprecated SchemaStatements#distinct
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 9a1923dec5..d93b79d57f 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -694,15 +694,6 @@ module ActiveRecord end end - # SELECT DISTINCT clause for a given set of columns and a given ORDER BY clause. - # - # distinct("posts.id", ["posts.created_at desc"]) - # - def distinct(columns, order_by) - ActiveSupport::Deprecation.warn("#distinct is deprecated and shall be removed from future releases.") - "DISTINCT #{columns_for_distinct(columns, order_by)}" - end - # Given a set of columns and an ORDER BY clause, returns the columns for a SELECT DISTINCT. # Both PostgreSQL and Oracle overrides this for custom DISTINCT syntax - they # require the order columns appear in the SELECT. |