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