class Dynabute::InstallGenerator
Public Class Methods
next_migration_number(path)
click to toggle source
argument :stylesheets_type, :type => :string, :default => 'less', :banner => '*less or static' class_option :'no-coffeescript', :type => :boolean, :default => false, :desc => 'Skips coffeescript replacement into app generators'
# File lib/generators/dynabute/install_generator.rb, line 12 def self.next_migration_number(path) next_migration_number = current_migration_number(path) + 1 ActiveRecord::Migration.next_migration_number(next_migration_number) end
Public Instance Methods
copy_migrations()
click to toggle source
# File lib/generators/dynabute/install_generator.rb, line 17 def copy_migrations migration_template 'migration.rb', "db/migrate/create_dynabutes.rb" end