31 32 33 34
# File 'lib/switchman/active_record/migration.rb', line 31 def generate_migrator_advisory_lock_id shard_name_hash = Zlib.crc32(Shard.current.name) ::ActiveRecord::Migrator::MIGRATOR_SALT * shard_name_hash end