Class: Jazari::Generators::UpgradeGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Jazari::Generators::UpgradeGenerator
- Includes:
- ActiveRecord::Generators::Migration
- Defined in:
- lib/generators/jazari/upgrade/upgrade_generator.rb
Overview
For hosts that already installed the tables. Schema changes are copied,
never applied on the gem's own initiative, for the same reason install is
explicit: a shared operations table changing shape inside someone else's
db:migrate is not a change they agreed to.
Instance Method Summary collapse
Instance Method Details
#copy_migration ⇒ Object
19 20 21 |
# File 'lib/generators/jazari/upgrade/upgrade_generator.rb', line 19 def copy_migration migration_template "add_jazari_runbook_origin.rb", "db/migrate/add_jazari_runbook_origin.rb" end |
#report ⇒ Object
23 24 25 26 27 28 |
# File 'lib/generators/jazari/upgrade/upgrade_generator.rb', line 23 def report say "" say "jazari: upgrade migration copied. It is additive and nullable, so it" say "is safe to run ahead of the code that writes the column." say "" end |