about summary refs log tree commit diff
path: root/db/migrate/20200630222227_add_edited_to_statuses.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20200630222227_add_edited_to_statuses.rb')
-rw-r--r--db/migrate/20200630222227_add_edited_to_statuses.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20200630222227_add_edited_to_statuses.rb b/db/migrate/20200630222227_add_edited_to_statuses.rb
new file mode 100644
index 000000000..c0a5abb97
--- /dev/null
+++ b/db/migrate/20200630222227_add_edited_to_statuses.rb
@@ -0,0 +1,10 @@
+class AddEditedToStatuses < ActiveRecord::Migration[5.2]
+  def up
+    add_column :statuses, :edited, :int
+    change_column_default :statuses, :edited, 0
+  end
+
+  def down
+    remove_column :statuses, :edited
+  end
+end