Sha256: 5eb001826533ce7217fca62f97a63dba0370ba38471d06a8c5e0f3982cba5b69

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

require 'rails/generators/migration'

class ConfirmedAttributes::InstallGenerator < Rails::Generators::Base
  include Rails::Generators::Migration
  source_root File.expand_path('../templates', __FILE__)

  def self.next_migration_number(path)
    Time.now.utc.strftime("%Y%m%d%H%M%S")
  end

  def generate_files
    migration_template 'migration.rb', 'db/migrate/create_confirmed_attributes_tables.rb'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
confirmed_attributes-0.2.0 lib/generators/confirmed_attributes/install_generator.rb
confirmed_attributes-0.1.0 lib/generators/confirmed_attributes/install_generator.rb