Class: TypedEAV::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_migrationsObject



13
14
15
# File 'lib/generators/typed_eav/install/install_generator.rb', line 13

def copy_migrations
  rake "typed_eav:install:migrations"
end

#show_post_installObject



17
18
19
20
21
22
23
24
25
# File 'lib/generators/typed_eav/install/install_generator.rb', line 17

def show_post_install
  say ""
  say "TypedEAV installed. Next steps:", :green
  say ""
  say "  1. Run migrations:  bin/rails db:migrate"
  say "  2. Add to a model:  has_typed_eav"
  say "  3. Generate scaffold: bin/rails generate typed_eav:scaffold"
  say ""
end