diff --git a/Gemfile.lock b/Gemfile.lock index 10724c550283d51e65bb9970b2d34eb94e7ced76..ec171d2c84de9fca4ae1158418fe8463c122dc1b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -309,6 +309,7 @@ DEPENDENCIES pygments.rb (= 0.2.4) rails (= 3.1.1) rails-footnotes (~> 3.7.5) + rake (= 0.9.2.2) rdiscount resque rspec-rails diff --git a/app/models/project.rb b/app/models/project.rb index 6650ccba2240256203e06f6973ffb8d6fa5996b4..e1c66c95a23346923a29d69524a61770762a4b20 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -171,7 +171,7 @@ class Project < ActiveRecord::Base end def commit_line_notes(commit) - notes.where(:noteable_id => commit.id, :noteable_type => "Commit").where("line_code not null") + notes.where(:noteable_id => commit.id, :noteable_type => "Commit").where("line_code is not null") end def has_commits? diff --git a/db/schema.rb b/db/schema.rb index e4066f50443f0e34b9425531acc6e2881bfc79e8..5fbb013b7dde507c79f20223182c727090f6f289 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -13,18 +13,6 @@ ActiveRecord::Schema.define(:version => 20120110180749) do - create_table "features", :force => true do |t| - t.string "name" - t.string "branch_name" - t.integer "assignee_id" - t.integer "author_id" - t.integer "project_id" - t.datetime "created_at" - t.datetime "updated_at" - t.string "version" - t.integer "status", :default => 0, :null => false - end - create_table "issues", :force => true do |t| t.string "title" t.integer "assignee_id"