module PIM::Migrations
Constants
- TYPES
Public Instance Methods
all_migrations()
click to toggle source
# File pim.rb, line 10390 def all_migrations migrations = [] add_parent_objects(migrations) { |p| p.module_migrations } migrations.concat(module_migrations) migrations end
migrate!(args)
click to toggle source
# File pim.rb, line 10369 def migrate! args initialization_point :migration PIM.log_info "Migration started for: #{args.inspect[0..100]}" executed_migrations = [] context = MigrationContext.new(args) while migrate_context(context, executed_migrations) context.update_version! end return context.migrated_values end
migration(options = {})
click to toggle source
# File pim.rb, line 10361 def migration options = {}, &block migration = Migration.new(options, &block) @module_migrations ||= [] @module_migrations << migration end
module_migrations()
click to toggle source
# File pim.rb, line 10386 def module_migrations @module_migrations || [] end