Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
63c5b541
Commit
63c5b541
authored
Feb 08, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Satisfy the new rubocop :)
parent
b0afed1a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
db/migrate/20160519203051_add_developers_can_merge_to_protected_branches.rb
...9203051_add_developers_can_merge_to_protected_branches.rb
+5
-1
db/migrate/20160801163709_add_submitted_as_ham_to_spam_logs.rb
...grate/20160801163709_add_submitted_as_ham_to_spam_logs.rb
+5
-1
No files found.
db/migrate/20160519203051_add_developers_can_merge_to_protected_branches.rb
View file @
63c5b541
...
@@ -3,7 +3,11 @@ class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration
...
@@ -3,7 +3,11 @@ class AddDevelopersCanMergeToProtectedBranches < ActiveRecord::Migration
disable_ddl_transaction!
disable_ddl_transaction!
def
change
def
up
add_column_with_default
:protected_branches
,
:developers_can_merge
,
:boolean
,
default:
false
,
allow_null:
false
add_column_with_default
:protected_branches
,
:developers_can_merge
,
:boolean
,
default:
false
,
allow_null:
false
end
end
def
down
remove_column
:protected_branches
,
:developers_can_merge
end
end
end
db/migrate/20160801163709_add_submitted_as_ham_to_spam_logs.rb
View file @
63c5b541
...
@@ -14,7 +14,11 @@ class AddSubmittedAsHamToSpamLogs < ActiveRecord::Migration
...
@@ -14,7 +14,11 @@ class AddSubmittedAsHamToSpamLogs < ActiveRecord::Migration
disable_ddl_transaction!
disable_ddl_transaction!
def
change
def
up
add_column_with_default
:spam_logs
,
:submitted_as_ham
,
:boolean
,
default:
false
add_column_with_default
:spam_logs
,
:submitted_as_ham
,
:boolean
,
default:
false
end
end
def
down
remove_column
:spam_logs
,
:submitted_as_ham
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment