Commit 4febc283c1e9aafdcc755454c1acbad38475daf6

Authored by Thiago Ribeiro
1 parent 9e6d7e74

Remove softwre with nil community.

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
... ...