Sha256: e1c88d9a5d74f455b4814d42edb08663bf5aa398a67ee82c81997b3af9fd33cd

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

require 'generators/essentials_base'

module SpreeEssentials
  module Generators
    class CmsGenerator < SpreeEssentials::Generators::EssentialsBase
      
      desc "Installs required migrations for spree_essentials"
      source_root File.expand_path("../../templates/db/migrate", __FILE__)
      
      def copy_migrations
        migration_template "create_pages.rb",    "db/migrate/create_pages.rb"
        migration_template "create_contents.rb", "db/migrate/create_contents.rb"
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_essential_cms-0.2.1 lib/generators/spree_essentials/cms_generator.rb
spree_essential_cms-0.2.0 lib/generators/spree_essentials/cms_generator.rb