Adds migrations for renaming and new flagging field
* inappropiate_flags table becomes flags * [comments|debates].archived_at becomes flag_ignored_at * Add new [comments|debates].hide_reviewed_at
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class RenameInappropiateFlagsAsFlags < ActiveRecord::Migration
|
||||
def change
|
||||
rename_table :inappropiate_flags, :flags
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class RenameArchivedAtToFlagIgnoredAtInCommentsAndDebates < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :comments, :archived_at, :flag_ignored_at
|
||||
rename_column :debates, :archived_at, :flag_ignored_at
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class AddHideReviewedAtToCommentsAndDebates < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :debates, :hide_reviewed_at, :datetime
|
||||
add_column :comments, :hide_reviewed_at, :datetime
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user