Sha256: 8f3711820a74addf7c5e650a2fd5c0d2e942d53c1fe5ad57dd964780311a6af9
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require 'rails/generators/migration' module MagicAddresses module Generators class AddNamedAddressesGenerator < ::Rails::Generators::Base include Rails::Generators::Migration source_root File.expand_path('../templates', __FILE__) desc "add named_addresses update migrations" 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 def copy_migrations migration_template( "add_named_addresses_migration.rb", "db/migrate/add_named_addresses.rb" ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magic_addresses-0.0.44 | lib/generators/magic_addresses/add_named_addresses_generator.rb |