Sha256: d430afb25f48b1174dfde8928aa8d886b463fa82b9a7331ded7a3c7c03f084c3

Contents?: true

Size: 634 Bytes

Versions: 12

Compression:

Stored size: 634 Bytes

Contents

class Mailboxer::NamespacingCompatibilityGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  source_root File.expand_path('../templates', __FILE__)
  require 'rails/generators/migration'

  FILENAME = 'mailboxer_namespacing_compatibility.rb'

  source_root File.expand_path('../templates', __FILE__)

  def create_model_file
    migration_template FILENAME, "db/migrate/#{FILENAME}"
  end

  def self.next_migration_number path
    unless @prev_migration_nr
    @prev_migration_nr = Time.now.utc.strftime("%Y%m%d%H%M%S").to_i
    else
    @prev_migration_nr += 1
    end
    @prev_migration_nr.to_s
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mailboxer-0.15.1 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.15.0 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.14.0 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.13.0 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.5 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.4 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.3 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.2 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.1 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.0 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.0.rc2 lib/generators/mailboxer/namespacing_compatibility_generator.rb
mailboxer-0.12.0.rc1 lib/generators/mailboxer/namespacing_compatibility_generator.rb