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