Class: Taskgration::TaskMigration
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Taskgration::TaskMigration
- Defined in:
- app/models/taskgration/task_migration.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#newest ⇒ Object
Scopes.
Class Method Details
.current_version ⇒ Object
11 12 13 |
# File 'app/models/taskgration/task_migration.rb', line 11 def current_version newest.first&.version end |
Instance Method Details
#newest ⇒ Object
Scopes
6 |
# File 'app/models/taskgration/task_migration.rb', line 6 scope :newest, -> { order(version: :desc) } |