Method: Polygallery::Generators::InstallGenerator#copy_migrations
- Defined in:
- lib/generators/polygallery/install/install_generator.rb
#copy_migrations ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/generators/polygallery/install/install_generator.rb', line 19 def copy_migrations # This is the old way of including migrations in a gem. # Migrations are now automatically appended by the engine. # Legacy code left commented below. # dest_dir = Rails.root.join 'db', 'migrate' # { # 'polygallery_migration.rb' => 'create_polygalleries.rb', # 'add_gallery_title.rb' => 'add_gallery_title_to_polyphotos.rb' # }.each do |source, dest_name| # unless self.class.migration_exists? dest_dir, dest_name # migration_template source, dest_dir.join(dest_name) # end # end end |