diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-01-30 12:12:23 -0500 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-01-30 12:12:23 -0500 |
commit | 418769908748f16d0eebd5e888ac4b0781b0d0f8 (patch) | |
tree | 729bc0416aa6ff026073e1ac8d0e0b76ebbb13ad /activerecord | |
parent | 8d30ef7cdd05f577695bf699b651f1090c1eca33 (diff) | |
parent | 8b9d217d0846752372791b7b8f34a0aa2e2ab812 (diff) | |
download | rails-418769908748f16d0eebd5e888ac4b0781b0d0f8.tar.gz rails-418769908748f16d0eebd5e888ac4b0781b0d0f8.tar.bz2 rails-418769908748f16d0eebd5e888ac4b0781b0d0f8.zip |
Merge pull request #23347 from yui-knk/explicitly_define_columns_as_interface
Explicitly define `columns` method as an interface
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 4 |
1 files changed, 3 insertions, 1 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 c7aff63228..efa427fa88 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -92,7 +92,9 @@ module ActiveRecord # Returns an array of Column objects for the table specified by +table_name+. # See the concrete implementation for details on the expected parameter values. - def columns(table_name) end + def columns(table_name) + raise NotImplementedError, "#columns is not implemented" + end # Checks to see if a column exists in a given table. # |