-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'discussion' criteria. Fixes #186
Based on a comment from Karl Fogel. See the lengthy discussion at #186 Signed-off-by: David A. Wheeler <dwheeler@dwheeler.com>
- Loading branch information
1 parent
161d734
commit 65ebe74
Showing
5 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class AddDiscussion < ActiveRecord::Migration | ||
def change | ||
add_column :projects, :discussion_status, :string, default: '?' | ||
add_column :projects, :discussion_justification, :text | ||
|
||
reversible do |dir| | ||
dir.up do | ||
execute <<-SQL | ||
UPDATE projects | ||
SET discussion_status='Met', | ||
discussion_justification='GitHub issue tracker and pull requests support discussion' | ||
WHERE project_homepage_url LIKE '%github.com%' OR | ||
repo_url LIKE '%github.com%' ; | ||
SQL | ||
end | ||
# dir.down do ... | ||
# end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters