Class: Settingify::ActiveRecordHelpers

Inherits:
Object
  • Object
show all
Defined in:
lib/settingify/active_record_helpers.rb

Class Method Summary collapse

Class Method Details

.table_exists?(table_name) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/settingify/active_record_helpers.rb', line 4

def table_exists?(table_name)
  ActiveRecord::Base.connection.table_exists? table_name
end