Removing habit.votedate

This commit is contained in:
Tyler Renelle 2012-02-01 11:08:14 -05:00
parent f8b48aa757
commit be779df79b
2 changed files with 0 additions and 2 deletions

View file

@ -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'

View file

@ -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