Move snippets to own tab as feature. Make it disabled for new projects by default

This commit is contained in:
Dmitriy Zaporozhets 2013-03-18 23:33:41 +02:00
parent 112dc875ba
commit b765a7958d
7 changed files with 25 additions and 3 deletions

View file

@ -0,0 +1,5 @@
class AddSnippetsToFeatures < ActiveRecord::Migration
def change
add_column :projects, :snippets_enabled, :boolean, null: false, default: 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 => 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"