Class: ActiveRecord::ConnectionAdapters::AbstractAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/empty_eye/active_record/connection_adapters/abstract_adapter.rb

Instance Method Summary collapse

Instance Method Details

#ordinary_table_exists?(name) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/empty_eye/active_record/connection_adapters/abstract_adapter.rb', line 5

def ordinary_table_exists?(name)
  tables_without_views.include?(name)
end

#view_exists?(name) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/empty_eye/active_record/connection_adapters/abstract_adapter.rb', line 9

def view_exists?(name)
  views.include?(name)
end