sql for mysql compatible
This commit is contained in:
parent
9b6c9fe253
commit
fc36df92da
3 changed files with 2 additions and 13 deletions
|
@ -309,6 +309,7 @@ DEPENDENCIES
|
||||||
pygments.rb (= 0.2.4)
|
pygments.rb (= 0.2.4)
|
||||||
rails (= 3.1.1)
|
rails (= 3.1.1)
|
||||||
rails-footnotes (~> 3.7.5)
|
rails-footnotes (~> 3.7.5)
|
||||||
|
rake (= 0.9.2.2)
|
||||||
rdiscount
|
rdiscount
|
||||||
resque
|
resque
|
||||||
rspec-rails
|
rspec-rails
|
||||||
|
|
|
@ -171,7 +171,7 @@ class Project < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def commit_line_notes(commit)
|
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
|
end
|
||||||
|
|
||||||
def has_commits?
|
def has_commits?
|
||||||
|
|
12
db/schema.rb
12
db/schema.rb
|
@ -13,18 +13,6 @@
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20120110180749) do
|
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|
|
create_table "issues", :force => true do |t|
|
||||||
t.string "title"
|
t.string "title"
|
||||||
t.integer "assignee_id"
|
t.integer "assignee_id"
|
||||||
|
|
Loading…
Add table
Reference in a new issue