Commit fc36df92da61ff11def791023f894da0c8fec0b2

Authored by Valery Sizov
1 parent 9b6c9fe2

sql for mysql compatible

Gemfile.lock
... ... @@ -309,6 +309,7 @@ DEPENDENCIES
309 309 pygments.rb (= 0.2.4)
310 310 rails (= 3.1.1)
311 311 rails-footnotes (~> 3.7.5)
  312 + rake (= 0.9.2.2)
312 313 rdiscount
313 314 resque
314 315 rspec-rails
... ...
app/models/project.rb
... ... @@ -171,7 +171,7 @@ class Project < ActiveRecord::Base
171 171 end
172 172  
173 173 def commit_line_notes(commit)
174   - notes.where(:noteable_id => commit.id, :noteable_type => "Commit").where("line_code not null")
  174 + notes.where(:noteable_id => commit.id, :noteable_type => "Commit").where("line_code is not null")
175 175 end
176 176  
177 177 def has_commits?
... ...
db/schema.rb
... ... @@ -13,18 +13,6 @@
13 13  
14 14 ActiveRecord::Schema.define(:version => 20120110180749) do
15 15  
16   - create_table "features", :force => true do |t|
17   - t.string "name"
18   - t.string "branch_name"
19   - t.integer "assignee_id"
20   - t.integer "author_id"
21   - t.integer "project_id"
22   - t.datetime "created_at"
23   - t.datetime "updated_at"
24   - t.string "version"
25   - t.integer "status", :default => 0, :null => false
26   - end
27   -
28 16 create_table "issues", :force => true do |t|
29 17 t.string "title"
30 18 t.integer "assignee_id"
... ...