diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-09-08 14:09:57 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-09-08 14:10:18 +0200 |
commit | e0cdc7c29d1afae9f0d86fc392cd40a9cf18efcf (patch) | |
tree | 38b0e80be709193a9fe353460bdce24eac336165 | |
parent | 3e617bbf45655f251fb9fb89beebccdb0f3ced82 (diff) | |
parent | 1fbd954e6a16df557be184cba6949ee0424d7680 (diff) | |
download | rails-e0cdc7c29d1afae9f0d86fc392cd40a9cf18efcf.tar.gz rails-e0cdc7c29d1afae9f0d86fc392cd40a9cf18efcf.tar.bz2 rails-e0cdc7c29d1afae9f0d86fc392cd40a9cf18efcf.zip |
Merge pull request #21548 from yui-knk/feature/define_tables_as_interface
Define `SchemaStatements#tables` as interface
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 5 |
1 files changed, 5 insertions, 0 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 4653904105..7974ff3710 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -23,6 +23,11 @@ module ActiveRecord table_name[0...table_alias_length].tr('.', '_') end + # Returns an array of table names defined in the database. + def tables(name = nil) + raise NotImplementedError, "#tables is not implemented" + end + # Checks to see if the table +table_name+ exists on the database. # # table_exists?(:developers) |