Sha256: bc12cc567a69e3c882e2f192a83112f712478c85d6fed9045373dced2ea87aec

Contents?: true

Size: 540 Bytes

Versions: 27

Compression:

Stored size: 540 Bytes

Contents

require 'rails/generators'
require 'rails/generators/active_record'

module Enjoy
  class MigrationGenerator < Rails::Generators::Base
    include ActiveRecord::Generators::Migration
    source_root File.expand_path('../templates', __FILE__)

    desc 'Enjoy migration generator'
    def install
      if Enjoy.active_record?
        # %w(contact_messages news pages seos).each do |table_name|
        #   migration_template "migration_#{table_name}.rb", "db/migrate/enjoy_create_#{table_name}.rb"
        # end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
enjoy_cms-0.3.7.4 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.7.3 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.7.2 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.7.1 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.7 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.6.2 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.6.1 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.6 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.5 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.4 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.3 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.2.1 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.2 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.1.2 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.1.1 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.1 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.0.4 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.0.3 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.3.0.2 lib/generators/enjoy/migration_generator.rb
enjoy_cms-0.2.1 lib/generators/enjoy/migration_generator.rb