Class: CustomAttributes::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Extended by:
ActiveRecord::Generators::Migration
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/custom_attributes/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



14
15
16
# File 'lib/generators/custom_attributes/install_generator.rb', line 14

def copy_files
  template        'custom_attributes.rb', 'config/initializers/custom_attributes.rb'
end

#create_migration_fileObject



18
19
20
# File 'lib/generators/custom_attributes/install_generator.rb', line 18

def create_migration_file
  migration_template 'create_custom_attributes.rb', 'db/migrate/create_custom_attributes.rb'
end