Default sort on tax_reference.

This commit is contained in:
2020-09-10 17:46:49 +01:00
parent 2f2f78776b
commit 184424bc23
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
class TaxReference < ApplicationRecord
default_scope { order(year: :desc) }
validates :year, uniqueness: true
MAX_MONTHLY_HOURS = 172

View File

@@ -25,7 +25,7 @@ set :rvm_ruby_version, '2.6.6'
# Default value for :linked_files is []
# append :linked_files, "config/database.yml"
append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', '.bundle', 'public/system', 'public/uploads'
append :linked_files, 'config/secrets.yml', 'config/master.key', 'config/credentials.yml.enc', '.env'
append :linked_files, 'config/secrets.yml', 'config/master.key', 'config/credentials.yml.enc', '.env', 'tmp/restart.txt'
# Default value for linked_dirs is []
# append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system"