Sha256: 7340a7914a1e440f3b516ef64c926bc06c6cf76331d152ab542432a53034d7f0
Contents?: true
Size: 784 Bytes
Versions: 16
Compression:
Stored size: 784 Bytes
Contents
module MailEngine class CopyMigrations < Rails::Generators::Base desc "Add mail template model migration to your application." source_root File.join(File.dirname(__FILE__)) def copy_migrations [ "20110114030841_create_table_mail_template", "20110126030525_create_mail_schedules", "20110204114145_create_template_partials", "20110206025002_create_mail_logs", "20110217062316_create_mail_template_files" ].each do |filename| from = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "db", "migrate", "#{filename}.rb")) to = File.expand_path(File.join(Rails.root, "db", "migrate", "#{filename}.rb")) copy_file from, to end end end # CreateMigration end # MailEngine
Version data entries
16 entries across 16 versions & 1 rubygems