Class: Noticed::Generators::ModelGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::ResourceHelpers
Defined in:
lib/generators/noticed/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_migrationsObject



10
11
12
# File 'lib/generators/noticed/install_generator.rb', line 10

def create_migrations
  rails_command "railties:install:migrations FROM=noticed", inline: true
end

#doneObject



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

def done
  readme "README" if behavior == :invoke
end