Sha256: 0e477b4f46070d31220bc46ef0d3be100f5baa9a30d4deea3a44d5bcabbd1114
Contents?: true
Size: 469 Bytes
Versions: 12
Compression:
Stored size: 469 Bytes
Contents
# This migration comes from knitkit (originally 20120316150424) class AddIsTemplateToDefaultWebsiteConfig def self.up default_website_config = Configuration.where('internal_identifier = ?', 'default_website_configuration').all unless default_website_config.empty? config = default_website_config.find{|config| config.websites.empty?} config.is_template = true config.save end end def self.down #remove data here end end
Version data entries
12 entries across 12 versions & 3 rubygems