README.md in migration-lock-timeout-1.0.0 vs README.md in migration-lock-timeout-1.1.0
- old
+ new
@@ -22,15 +22,15 @@
Configure the default lock timeout in a Rails initializer
```ruby
#config/initializers/migration_lock_timeout.rb
-MigrationLockTimeout.configure |config|
- config.default_lock_timeout = 5 #timeout in seconds
+MigrationLockTimeout.configure do |config|
+ config.default_timeout = 5 #timeout in seconds
end
```
-And that's all! Now every migration will execute
+And that's all! Now every `up` migration will execute
```psql
SET LOCAL lock_timeout = '5s';
```
inside the migration transaction before your migration code runs. No lock
timeout will be used for the `down` migration.