Move snippets to own tab as feature. Make it disabled for new projects by default
This commit is contained in:
parent
112dc875ba
commit
b765a7958d
7 changed files with 25 additions and 3 deletions
5
db/migrate/20130318212250_add_snippets_to_features.rb
Normal file
5
db/migrate/20130318212250_add_snippets_to_features.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddSnippetsToFeatures < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :projects, :snippets_enabled, :boolean, null: false, default: true
|
||||
end
|
||||
end
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue