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

Version Path
mail_engine-0.1.15 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.14 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.13 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.12 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.11 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.10 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.9 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.8 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.7 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.6 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.5 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.4 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.3 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.2 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.1 lib/mail_engine/generators/copy_migrations.rb
mail_engine-0.1.0 lib/mail_engine/generators/copy_migrations.rb