class AddBlockToEnvironmentAndProfile < ActiveRecord::Migration
    def up
      Environment.all.each do |env|
        env.boxes << Box.new if env.boxes.count < 4
      end

      Profile.all.each do |profile|
        profile.boxes << Box.new if profile.boxes.count < 4
      end
    end

    def down
      say "this migration can't be reverted"
    end
end

Migrate for add the fourth box.
Migrate for add the fourth box.

Migrate for add the fourth box to existing enviroments and profiles.

Signed-off-by: Thiago Ribeiro <25630c3dd4509f5915a846461794b51273be2039@hotmail.com>
