Skip to content

Instantly share code, notes, and snippets.

@joeljunstrom
Created June 8, 2011 11:25
Show Gist options
  • Save joeljunstrom/1014233 to your computer and use it in GitHub Desktop.
Save joeljunstrom/1014233 to your computer and use it in GitHub Desktop.
puts $db.collection('pages').update({ 'data._type' => 'ContentBlock' }, {
'$set' => {
'data.$.allow_texts' => true,
'data.$.allowed_asset_filetypes' => ['image'],
'data.$.allowed_page_template_ids' => page_template_ids
}
}, :multi => true, :safe => true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment