diff --git a/app/models/tax_reference.rb b/app/models/tax_reference.rb index 984aeff..99ed0a9 100644 --- a/app/models/tax_reference.rb +++ b/app/models/tax_reference.rb @@ -1,4 +1,5 @@ class TaxReference < ApplicationRecord + default_scope { order(year: :desc) } validates :year, uniqueness: true MAX_MONTHLY_HOURS = 172 diff --git a/config/deploy.rb b/config/deploy.rb index 98ed98e..60f6811 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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"