Module: FitterHappier::DatabaseCheck
- Defined in:
- app/helpers/fitter_happier/database_check.rb
Class Method Summary collapse
Class Method Details
.schema_version ⇒ Object
3 4 5 6 |
# File 'app/helpers/fitter_happier/database_check.rb', line 3 def self.schema_version query = "SELECT max(lpad(version, 20, '0')) FROM schema_migrations" ActiveRecord::Base.connection.select_value(query).to_i end |