Commit fc36df92da61ff11def791023f894da0c8fec0b2
1 parent
9b6c9fe2
Exists in
master
and in
4 other branches
sql for mysql compatible
Showing
3 changed files
with
2 additions
and
13 deletions
Show diff stats
Gemfile.lock
@@ -309,6 +309,7 @@ DEPENDENCIES | @@ -309,6 +309,7 @@ DEPENDENCIES | ||
309 | pygments.rb (= 0.2.4) | 309 | pygments.rb (= 0.2.4) |
310 | rails (= 3.1.1) | 310 | rails (= 3.1.1) |
311 | rails-footnotes (~> 3.7.5) | 311 | rails-footnotes (~> 3.7.5) |
312 | + rake (= 0.9.2.2) | ||
312 | rdiscount | 313 | rdiscount |
313 | resque | 314 | resque |
314 | rspec-rails | 315 | rspec-rails |
app/models/project.rb
@@ -171,7 +171,7 @@ class Project < ActiveRecord::Base | @@ -171,7 +171,7 @@ class Project < ActiveRecord::Base | ||
171 | end | 171 | end |
172 | 172 | ||
173 | def commit_line_notes(commit) | 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 | end | 175 | end |
176 | 176 | ||
177 | def has_commits? | 177 | def has_commits? |
db/schema.rb
@@ -13,18 +13,6 @@ | @@ -13,18 +13,6 @@ | ||
13 | 13 | ||
14 | ActiveRecord::Schema.define(:version => 20120110180749) do | 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 | create_table "issues", :force => true do |t| | 16 | create_table "issues", :force => true do |t| |
29 | t.string "title" | 17 | t.string "title" |
30 | t.integer "assignee_id" | 18 | t.integer "assignee_id" |