summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-06 19:40:32 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-02-06 19:40:32 +0200
commit6c416aaac85fe16cd4900a686714627e9a0fcdbc (patch)
treeae08e26029513abe829ea4aea8984b9e7695cf51 /db
parentda3e34c0fdc4de47e6192b8d75ce60be7d89b6d4 (diff)
downloadgitlab-ce-6c416aaac85fe16cd4900a686714627e9a0fcdbc.tar.gz
Issues, MR, Wall can be enabled/disabled per project
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120206170141_add_modularity_fields_to_project.rb7
-rw-r--r--db/schema.rb21
2 files changed, 25 insertions, 3 deletions
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|