Method: Sequel::TimestampMigrator#run_single
- Defined in:
- lib/sequel/extensions/migration.rb
#run_single(path, direction) ⇒ Object
Apply single migration tuple at the given path with the given direction on the database.
734 735 736 737 738 739 740 741 742 743 |
# File 'lib/sequel/extensions/migration.rb', line 734 def run_single(path, direction) migration = load_migration_file(path) file_name = File.basename(path) already_applied = applied_migrations.include?(file_name.downcase) return if direction == :up ? already_applied : !already_applied apply_migration(migration, file_name, direction) nil end |