Skip to content

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

@didnotwrite

Description

@didnotwrite

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions