app/models/tasks_management/task.rb in tasks_management-0.1.3 vs app/models/tasks_management/task.rb in tasks_management-0.1.4
- old
+ new
@@ -3,11 +3,13 @@
attr_accessor :owners
has_many :sub_tasks, class_name: "Task", foreign_key: "parent_id"
belongs_to :parent, class_name: "Task"
- enum priority: [:low, :medium, :high]
+ enum priority: [:high, :medium, :low]
enum state: [:pending, :rejected, :started, :finished, :accepted]
+
+ has_attached_file :file
after_save do
unless self.owners.blank?
raise TasksManagement::OwnerIdSettedException unless self.owner.blank?
self.owners.each do |owner|