mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-11 15:12:37 +01:00
fix #1164 and fix #1159 whre a localization was wrong and adding brackets at NOT sql statements for older MySQL versions
This commit is contained in:
parent
58641a2fd0
commit
7d5ca16044
3 changed files with 6 additions and 6 deletions
|
|
@ -32,7 +32,7 @@ class Project < ActiveRecord::Base
|
|||
named_scope :active, :conditions => { :state => 'active' }
|
||||
named_scope :hidden, :conditions => { :state => 'hidden' }
|
||||
named_scope :completed, :conditions => { :state => 'completed'}
|
||||
named_scope :uncompleted, :conditions => ["NOT state = ?", 'completed']
|
||||
named_scope :uncompleted, :conditions => ["NOT(state = ?)", 'completed']
|
||||
|
||||
validates_presence_of :name
|
||||
validates_length_of :name, :maximum => 255
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue