Commit ac727c4738ac6759b4c97c4c68382f535ffba258

Authored by Rodrigo Souto
2 parents 9e6d7e74 4febc283

Merge branch 'fix_remove_software_without_communities' into 'master'

Fix remove software without communities

A migraçao antiga nao resolveu esse problema, eu corrigi com essa nova e apaguei a antiga!

See merge request !112
src/noosfero-spb/spb_migrations/db/migrate/20160104182236_remove_softwares_with_nil_community.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class RemoveSoftwareWithoutCommunity < ActiveRecord::Migration
  2 + def up
  3 + execute('DELETE FROM software_infos where community_id IS NULL;')
  4 + end
  5 +
  6 + def down
  7 + say"This migration can't be reverted"
  8 + end
  9 +end
... ...