052_create_templates.rb 294 Bytes
class CreateTemplates < ActiveRecord::Migration
  def self.up
    Environment.find(:all).each do |env|
      if env.person_template.nil? && env.community_template.nil? && env.enterprise_template.nil?
        env.create_templates
      end
    end
  end

  def self.down
    # nothing
  end
end