Issues, MR, Wall can be enabled/disabled per project
This commit is contained in:
parent
da3e34c0fd
commit
6c416aaac8
9 changed files with 116 additions and 26 deletions
|
@ -0,0 +1,7 @@
|
|||
class AddModularityFieldsToProject < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :issues_enabled, :boolean, :null => false, :default => true
|
||||
add_column :projects, :wall_enabled, :boolean, :null => false, :default => true
|
||||
add_column :projects, :merge_requests_enabled, :boolean, :null => false, :default => true
|
||||
end
|
||||
end
|
21
db/schema.rb
21
db/schema.rb
|
@ -11,7 +11,19 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20120121122616) do
|
||||
ActiveRecord::Schema.define(:version => 20120206170141) 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"
|
||||
|
@ -73,10 +85,13 @@ ActiveRecord::Schema.define(:version => 20120121122616) do
|
|||
t.text "description"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.boolean "private_flag", :default => true, :null => false
|
||||
t.boolean "private_flag", :default => true, :null => false
|
||||
t.string "code"
|
||||
t.integer "owner_id"
|
||||
t.string "default_branch", :default => "master", :null => false
|
||||
t.string "default_branch", :default => "master", :null => false
|
||||
t.boolean "issues_enabled", :default => true, :null => false
|
||||
t.boolean "wall_enabled", :default => true, :null => false
|
||||
t.boolean "merge_requests_enabled", :default => true, :null => false
|
||||
end
|
||||
|
||||
create_table "snippets", :force => true do |t|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue