Migration shouldn't unpublish existing bubbles

This commit is contained in:
Kevin McConnell
2025-01-15 12:29:13 +00:00
parent 8a114e0d8d
commit e807c2a8d1
2 changed files with 6 additions and 1 deletions
@@ -0,0 +1,5 @@
class EnsureExistingBubblesArePublished < ActiveRecord::Migration[8.1]
def change
execute "update bubbles set status = 'published' where status = 'drafted'"
end
end
Generated
+1 -1
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.1].define(version: 2025_01_09_153649) do
ActiveRecord::Schema[8.1].define(version: 2025_01_15_122810) do
create_table "accesses", force: :cascade do |t|
t.integer "bucket_id", null: false
t.integer "user_id", null: false