about summary refs log tree commit diff
path: root/db/post_migrate
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-06-03 20:47:02 +0200
committerClaire <claire.github-309c@sitedethib.com>2021-06-03 20:47:02 +0200
commit0157caacefe34838ff5d5093dc188f5491cb7b15 (patch)
treea5b56590b7660b6ed3257f929bf209a26cb25a15 /db/post_migrate
parent02dffa8edd097014578774aed30249ed08d2f3a4 (diff)
parentf6088922c06f3da02e9051b39f3a7111f19298dd (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'db/post_migrate')
-rw-r--r--db/post_migrate/20210526193025_remove_lock_version_from_account_stats.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/post_migrate/20210526193025_remove_lock_version_from_account_stats.rb b/db/post_migrate/20210526193025_remove_lock_version_from_account_stats.rb
new file mode 100644
index 000000000..3079bed09
--- /dev/null
+++ b/db/post_migrate/20210526193025_remove_lock_version_from_account_stats.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+class RemoveLockVersionFromAccountStats < ActiveRecord::Migration[5.2]
+  def change
+    safety_assured do
+      remove_column :account_stats, :lock_version, :integer, null: false, default: 0
+    end
+  end
+end