We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51752d5 commit 58e57d1Copy full SHA for 58e57d1
spec/support/generator_setup.rb
@@ -17,7 +17,9 @@ def file(relative_path)
17
18
def migration_content(file_path)
19
migration_path = find_migration_files(file_path).first
20
- migration_path ? Pathname.new(migration_path).read : nil
+ return if migration_path.nil?
21
+
22
+ Pathname.new(migration_path).read
23
end
24
25
def find_migration_files(file_path)
0 commit comments