Commit 99b36598 authored by Benjamin Neff's avatar Benjamin Neff Committed by Dennis Schubert

add migration to fix public flag of photos

parent e16b9af7
class FixPhotoPublicFlag < ActiveRecord::Migration
def up
Photo.joins(:status_message).where(posts: {public: true}).update_all(public: true)
def down
raise ActiveRecord::IrreversibleMigration
......@@ -11,7 +11,7 @@
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150531005120) do
ActiveRecord::Schema.define(version: 20150607143809) do
create_table "account_deletions", force: :cascade do |t|
t.string "diaspora_handle", limit: 255
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment