Class: ActiveRecord::ConnectionAdapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/database_cleaner/active_record/truncation.rb

Instance Method Summary collapse

Instance Method Details

#viewsObject



12
13
14
# File 'lib/database_cleaner/active_record/truncation.rb', line 12

def views
  @views ||= select_values("select table_name from information_schema.views where table_schema = '#{current_database}'") rescue []
end