Sha256: b474f5cf451ad1e1d6093a9cc2876b1f20253b054356f3ef556d545b308c3493
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
require 'rails/generators' require 'rails/generators/active_record' module Hancock::Seo class MigrationsGenerator < Rails::Generators::Base include ActiveRecord::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc 'Hancock SEO migration generator' def migrations if Hancock.active_record? %w(seos).each do |table_name| migration_template "migration_#{table_name}.rb", "db/migrate/hancock_create_#{table_name}.rb" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms_seo-1.0.2 | lib/generators/hancock/seo/migrations/migrations_generator.rb |