mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
Removing habit.votedate
This commit is contained in:
parent
f8b48aa757
commit
be779df79b
2 changed files with 0 additions and 2 deletions
|
|
@ -18,7 +18,6 @@ class Habit < ActiveRecord::Base
|
|||
next_vote = 1 #TODO return log or linear based on current score
|
||||
next_vote *= -1 if(direction=='down')
|
||||
self.score += next_vote
|
||||
self.votedate = Time.now
|
||||
if(self.habit_type==Habit::DAILY)
|
||||
self.done = true if direction=='up'
|
||||
self.done = false if direction=='down'
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@ class CreateHabits < ActiveRecord::Migration
|
|||
t.boolean :down, :default => true
|
||||
t.boolean :done, :default => false
|
||||
t.text :notes
|
||||
t.datetime :votedate
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue