Skip to content

Commit

Permalink
migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
JensRavens committed Nov 23, 2024
1 parent 9021426 commit 5264926
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/models/leave.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class Leave < ApplicationRecord
scope :starts_today, -> { where("LOWER(leaves.leave_during) = ?", Time.zone.today) }
scope :not_rejected, -> { where.not(status: :rejected) }

enum type: [:paid, :unpaid, :sick, :non_working].index_with(&:to_s)
enum status: [:pending_approval, :approved, :rejected].index_with(&:to_s)
enum :type, [:paid, :unpaid, :sick, :non_working].index_with(&:to_s)
enum :status, [:pending_approval, :approved, :rejected].index_with(&:to_s)

range_accessor_methods :leave

Expand Down
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require "active_storage/engine"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_mailbox/engine"
# require "action_mailbox/engine"
require "action_text/engine"
require "action_view/railtie"
require "action_cable/engine"
Expand Down
2 changes: 1 addition & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5264926

Please sign in to comment.