Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 01:33:41 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 01:33:41 +0400
commitb765a7958d5d8602d0f8cc3b23b07cfa4f304208 (patch)
tree412361c9ec0b838abc0cd38527e4d34991dc6be2 /db
parent112dc875ba325cfb0b223165c20d8424698e7791 (diff)
Move snippets to own tab as feature. Make it disabled for new projects by default
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20130318212250_add_snippets_to_features.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20130318212250_add_snippets_to_features.rb b/db/migrate/20130318212250_add_snippets_to_features.rb
new file mode 100644
index 00000000000..ad0b4434c43
--- /dev/null
+++ b/db/migrate/20130318212250_add_snippets_to_features.rb
@@ -0,0 +1,5 @@
+class AddSnippetsToFeatures < ActiveRecord::Migration
+ def change
+ add_column :projects, :snippets_enabled, :boolean, null: false, default: true
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 80c61a4fd6a..e4349ac4bf7 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130315124931) do
+ActiveRecord::Schema.define(:version => 20130318212250) do
create_table "events", :force => true do |t|
t.string "target_type"
@@ -155,6 +155,7 @@ ActiveRecord::Schema.define(:version => 20130315124931) do
t.boolean "public", :default => false, :null => false
t.string "issues_tracker", :default => "gitlab", :null => false
t.string "issues_tracker_id"
+ t.boolean "snippets_enabled", :default => true, :null => false
end
add_index "projects", ["creator_id"], :name => "index_projects_on_owner_id"