Add Milestone information in Merge Requests

Step 1:
* Add milestone_id in the model for merge_requests
* Make it possible to create or update a Merge Request with an attached
  Milestone detail
* Add the possibility to filter by Milestone and / or Assignee in the
  Merge Requests listing page
This commit is contained in:
Sergio Visinoni 2012-10-26 14:52:10 +02:00
parent 4f687aaa8e
commit a7d0816933
8 changed files with 93 additions and 22 deletions

View file

@ -0,0 +1,5 @@
class AddMilestoneIdToMergeRequests < ActiveRecord::Migration
def change
add_column :merge_requests, :milestone_id, :integer, :null => true
end
end

View file

@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
ActiveRecord::Schema.define(:version => 20121009205010) do
ActiveRecord::Schema.define(:version => 20121026114600) do
create_table "events", :force => true do |t|
t.string "target_type"
@ -73,6 +73,7 @@ ActiveRecord::Schema.define(:version => 20121009205010) do
t.text "st_diffs", :limit => 2147483647
t.boolean "merged", :default => false, :null => false
t.integer "state", :default => 1, :null => false
t.integer "milestone_id"
end
add_index "merge_requests", ["project_id"], :name => "index_merge_requests_on_project_id"