Skip to content

A platform for community discussion. Free, open, simple.

DEV: Drop uploads verified column (#13677)

Martin Brennanef90575b9184
diff --git a/db/post_migrate/20210709053030_drop_uploads_verified.rb b/db/post_migrate/20210709053030_drop_uploads_verified.rb
new file mode 100644
index 00000000000..bbf6a7dde55
--- /dev/null
+++ b/db/post_migrate/20210709053030_drop_uploads_verified.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class DropUploadsVerified < ActiveRecord::Migration[6.1]
+ DROPPED_COLUMNS ||= {
+ uploads: %i{verified}
+ }
+
+ def up
+ DROPPED_COLUMNS.each do |table, columns|
+ Migration::ColumnDropper.execute_drop(table, columns)
+ end
+ end
+
+ def down
+ add_column :uploads, :verified, :string
+ end
+end