Sha256: e899663ca4c938627ce4843cf7b81a4529fe324bee12c47551e78cde85ad0f67
Contents?: true
Size: 483 Bytes
Versions: 10
Compression:
Stored size: 483 Bytes
Contents
class AddWebsiteConfigs def self.up #insert data here Website.all.each do |w| if w.configurations.empty? config = Configuration.find_by_internal_identifier('default_website_configuration').clone(true) config.update_configuration_item(ConfigurationItemType.find_by_internal_identifier('contact_us_email_address'), w.email) w.configurations << config w.save end end end def self.down #remove data here end end
Version data entries
10 entries across 10 versions & 1 rubygems