Class: HasTokenOn::ConfigGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_migration_fileObject



28
29
30
31
32
# File 'lib/generators/has_token_on/config_generator.rb', line 28

def create_migration_file
  migration_template "create_token.rb.erb",
                      "db/migrate/create_#{self.model}_#{self.name}.rb",
                      :assigns => { :model => self.model, :name => self.name  }
end