lib/exodus/migrations/migration.rb in exodus-1.1.4 vs lib/exodus/migrations/migration.rb in exodus-1.1.5
- old
+ new
@@ -56,9 +56,10 @@
end
# Using a list of migrations formats them and removes duplicates
# migrations: list of migrations => [[MyMigration, {:my_args => 'some_args'}]]
def load_custom(migrations)
+ migrations = migrations || []
migrations.map {|migration_str, args| format(migration_str, args) }.uniq
end
# Formats a given migration making sure the first argument is a class
# and the second one -if it exists- is a none empty hash
\ No newline at end of file