diff --git a/app/models/habit.rb b/app/models/habit.rb index 3ac5b51896..69640c81ac 100644 --- a/app/models/habit.rb +++ b/app/models/habit.rb @@ -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' diff --git a/db/migrate/20120201040610_create_habits.rb b/db/migrate/20120201040610_create_habits.rb index 4e9570e620..a958e62cd8 100644 --- a/db/migrate/20120201040610_create_habits.rb +++ b/db/migrate/20120201040610_create_habits.rb @@ -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