From 724d6bd15415a47a6f2e16441abbb09318aafd04 Mon Sep 17 00:00:00 2001 From: Evandro Jr Date: Thu, 11 Sep 2014 19:27:54 -0300 Subject: [PATCH] Added Readme and fixed loading flower in Firefox --- README.md | 19 +++++++++++++++++++ db/migrate/20140715190748_add_setting_to_comments.rb | 9 --------- db/migrate/20140715190749_add_setting_to_comments.rb | 9 +++++++++ db/migrate/20140715201629_add_paragraph_id_to_comment.rb | 9 --------- db/migrate/20140715201649_add_paragraph_id_to_comment.rb | 9 +++++++++ 5 files changed, 37 insertions(+), 18 deletions(-) create mode 100644 README.md delete mode 100644 db/migrate/20140715190748_add_setting_to_comments.rb create mode 100644 db/migrate/20140715190749_add_setting_to_comments.rb delete mode 100644 db/migrate/20140715201629_add_paragraph_id_to_comment.rb create mode 100644 db/migrate/20140715201649_add_paragraph_id_to_comment.rb diff --git a/README.md b/README.md new file mode 100644 index 0000000..22c316e --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +README - Comment Classification Plugin +====================================== + +This plugin creates the structure for classifying the comments. The +initial idea of this plugin is to support the management of public +consulting, but it can be used in different contexts. +For now, two kind of classification will be available: + + * Label: when creating a comment, the user identify the kind of it by +choosing the label of the comment. Example: "Suggestion", +"Disagreement"... + * Status: users with permission can include a Status for a comment. +Example: "Merged", "Unmerged" + +Dependency +========== + +This plugin was developed to help public consulting and needs the +CommentGroupPlugin enabled to be used. diff --git a/db/migrate/20140715190748_add_setting_to_comments.rb b/db/migrate/20140715190748_add_setting_to_comments.rb deleted file mode 100644 index b709771..0000000 --- a/db/migrate/20140715190748_add_setting_to_comments.rb +++ /dev/null @@ -1,9 +0,0 @@ -class AddSettingToComments < ActiveRecord::Migration - def self.up - add_column :comments, :setting, :text unless column_exists?(:comments, :setting) - end - - def self.down - remove_column :comments, :setting - end -end diff --git a/db/migrate/20140715190749_add_setting_to_comments.rb b/db/migrate/20140715190749_add_setting_to_comments.rb new file mode 100644 index 0000000..b709771 --- /dev/null +++ b/db/migrate/20140715190749_add_setting_to_comments.rb @@ -0,0 +1,9 @@ +class AddSettingToComments < ActiveRecord::Migration + def self.up + add_column :comments, :setting, :text unless column_exists?(:comments, :setting) + end + + def self.down + remove_column :comments, :setting + end +end diff --git a/db/migrate/20140715201629_add_paragraph_id_to_comment.rb b/db/migrate/20140715201629_add_paragraph_id_to_comment.rb deleted file mode 100644 index 639f4ca..0000000 --- a/db/migrate/20140715201629_add_paragraph_id_to_comment.rb +++ /dev/null @@ -1,9 +0,0 @@ -class AddParagraphIdToComment < ActiveRecord::Migration - def self.up - add_column :comments, :paragraph_id, :integer unless column_exists?(:comments, :paragraph_id) - end - - def self.down - remove_column :comments, :paragraph_id - end -end diff --git a/db/migrate/20140715201649_add_paragraph_id_to_comment.rb b/db/migrate/20140715201649_add_paragraph_id_to_comment.rb new file mode 100644 index 0000000..639f4ca --- /dev/null +++ b/db/migrate/20140715201649_add_paragraph_id_to_comment.rb @@ -0,0 +1,9 @@ +class AddParagraphIdToComment < ActiveRecord::Migration + def self.up + add_column :comments, :paragraph_id, :integer unless column_exists?(:comments, :paragraph_id) + end + + def self.down + remove_column :comments, :paragraph_id + end +end -- libgit2 0.21.2