Class: PGCrypto::Column
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PGCrypto::Column
- Defined in:
- lib/pgcrypto/column.rb
Class Method Summary collapse
Class Method Details
.tables_and_columns ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/pgcrypto/column.rb', line 10 def self.tables_and_columns tables_and_columns = [] select('DISTINCT owner_type, name').each do |column| tables_and_columns.push [column.owner_type.constantize.table_name, column.name] end tables_and_columns end |