diff options
author | Lars Kanis <larskanis@gmail.com> | 2016-10-01 16:29:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-01 16:29:22 +0200 |
commit | c16a70a4e61f881016749243fea91716552bcf6b (patch) | |
tree | 93ff1c5742708d6fb6179f2d7833a6801427807e /activerecord | |
parent | 58cabed38efddf54b67fd705fb98f5682fb1d5aa (diff) | |
download | rails-c16a70a4e61f881016749243fea91716552bcf6b.tar.gz rails-c16a70a4e61f881016749243fea91716552bcf6b.tar.bz2 rails-c16a70a4e61f881016749243fea91716552bcf6b.zip |
Add missing require for zlib
Zlib is used to generate the advisory lock since commit 2c2a8755460 .
Using the Migrator fails since then, when it is called without the rails context:
NameError: uninitialized constant ActiveRecord::Migrator::Zlib
This patch fixes the above error.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/migration.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb index 05568039d8..627e93b5b6 100644 --- a/activerecord/lib/active_record/migration.rb +++ b/activerecord/lib/active_record/migration.rb @@ -1,4 +1,5 @@ require "set" +require "zlib" require "active_support/core_ext/module/attribute_accessors" require "active_support/core_ext/regexp" |