mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:57:40 +08:00
DEV: Update to lastest rubocop-discourse
This commit is contained in:

committed by
Loïc Guitaut

parent
3b6d4c830f
commit
2a28cda15c
@ -41,7 +41,7 @@ module Migrations
|
||||
Dir[file_pattern].sort.each do |path|
|
||||
relative_path = Pathname(path).relative_path_from(Migrations.root_path).to_s
|
||||
|
||||
unless performed_migrations.include?(relative_path)
|
||||
if performed_migrations.exclude?(relative_path)
|
||||
sql = File.read(path)
|
||||
sql_hash = Digest::SHA1.hexdigest(sql)
|
||||
connection.execute(sql)
|
||||
|
Reference in New Issue
Block a user