Class: Alchemy::Devise::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/alchemy/devise/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_migrationsObject



12
13
14
# File 'lib/generators/alchemy/devise/install/install_generator.rb', line 12

def add_migrations
  run "bundle exec rake alchemy_devise:install:migrations"
end

#copy_devise_configObject



8
9
10
# File 'lib/generators/alchemy/devise/install/install_generator.rb', line 8

def copy_devise_config
  template "devise.rb.tt", "config/initializers/devise.rb"
end

#run_migrationsObject



16
17
18
# File 'lib/generators/alchemy/devise/install/install_generator.rb', line 16

def run_migrations
  run "bundle exec rake db:migrate"
end