Commit aedd76a8562d7b7179b4d802ec4be77d586eb477

Authored by Daniela Feitosa
2 parents 22cd99c6 fe196cc3

Merge branch 'bug_bloco_sei' into 'master'

Bug bloco sei

See merge request !73
src/noosfero-spb/spb_migrations/db/migrate/20151106172419_remove_softwares_without_community.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class RemoveSoftwaresWithoutCommunity < ActiveRecord::Migration
  2 + def up
  3 + execute('DELETE FROM software_infos where community_id NOT IN (SELECT id FROM profiles)')
  4 + end
  5 +
  6 + def down
  7 + say "This migration can't be reverted!"
  8 + end
  9 +end
... ...