Sha256: 2ec6c4ae7593e5f7cac6c8060788bee9d42a281daf84400882d1f35460e634cb
Contents?: true
Size: 472 Bytes
Versions: 18
Compression:
Stored size: 472 Bytes
Contents
require 'generators/cms/content_types' module CMS module Generators class MigrationGenerator < ContentTypes source_root File.expand_path('../templates', __FILE__) def create_migration_file if options[:only].present? migration_template 'migration.rb', "db/migrate/create_#{options[:only].underscore.pluralize}" else migration_template 'migration.rb', 'db/migrate/create_cms' end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems