giemsky / redmine_carousel

17 stars 9 forks source link

fix for app/models/carousel.rb to work with sqlite #7

Open didnotwrite opened 13 years ago

didnotwrite commented 13 years ago

I had to change line 19 to:

  named_scope :to_run, :conditions => "strftime('%s',current_timestamp) > strftime('%s',COALESCE(last_run, '1970-01-01')) + period"
giemsky commented 13 years ago

Which database do you use?

didnotwrite commented 13 years ago

Sqlite 3.something

gmiklaszewski reply@reply.github.com wrote:

Which database do you use?

Reply to this email directly or view it on GitHub: https://github.com/gmiklaszewski/redmine_carousel/issues/7#comment_1066957