FIX: Rename site setting in the database, too.

FIX: Rename site setting in the database, too.

diff --git a/db/migrate/20190724200243_rename_staff_notes.rb b/db/migrate/20190724200243_rename_staff_notes.rb
new file mode 100644
index 0000000..24d9b4f
--- /dev/null
+++ b/db/migrate/20190724200243_rename_staff_notes.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class RenameStaffNotes < ActiveRecord::Migration[5.2]
+  def change
+    execute "UPDATE site_settings SET name = 'user_notes_enabled' WHERE name = 'staff_notes_enabled'"
+  end
+end

GitHub sha: 0c729fe8

1 Like