From 6c416aaac85fe16cd4900a686714627e9a0fcdbc Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 6 Feb 2012 19:40:32 +0200 Subject: Issues, MR, Wall can be enabled/disabled per project --- ...120206170141_add_modularity_fields_to_project.rb | 7 +++++++ db/schema.rb | 21 ++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20120206170141_add_modularity_fields_to_project.rb (limited to 'db') diff --git a/db/migrate/20120206170141_add_modularity_fields_to_project.rb b/db/migrate/20120206170141_add_modularity_fields_to_project.rb new file mode 100644 index 00000000000..d63de0c2be3 --- /dev/null +++ b/db/migrate/20120206170141_add_modularity_fields_to_project.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 2d891917fd7..a6522e8e92e 100644 --- a/db/schema.rb +++ b/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| -- cgit v1.2.3