Sha256: f2d2866b7c97ebe5f77e3f5d206584eeb89200a85129f176ca62d0e9f3f78818

Contents?: true

Size: 286 Bytes

Versions: 9

Compression:

Stored size: 286 Bytes

Contents

class InstallMigratedSeoPlugin < ActiveRecord::Migration
  # install seo plugin without calling hooks (seo logic moved to separated plugin)
  def change
    CamaleonCms::Site.all.each do |s|
      s.plugins.where(slug: 'cama_meta_tag').first_or_create!(term_group: 1)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
camaleon_cms-2.4.3.2 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.4.3.1 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.4.3 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.4.2 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.4.1 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.4.0 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.3.7.2 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.3.7.1 db/migrate/20161206211917_install_migrated_seo_plugin.rb
camaleon_cms-2.3.7 db/migrate/20161206211917_install_migrated_seo_plugin.rb