From 5b1ea3ea00579e45ed8b46a23a007c328f766786 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 9 Sep 2015 06:45:54 -0300 Subject: Invert the conditional --- activerecord/lib/active_record/schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/schema.rb') diff --git a/activerecord/lib/active_record/schema.rb b/activerecord/lib/active_record/schema.rb index 0a5546a760..f58ee87f1f 100644 --- a/activerecord/lib/active_record/schema.rb +++ b/activerecord/lib/active_record/schema.rb @@ -40,7 +40,7 @@ module ActiveRecord def define(info, &block) # :nodoc: instance_eval(&block) - unless info[:version].blank? + if info[:version].present? initialize_schema_migrations_table connection.assume_migrated_upto_version(info[:version], migrations_paths) end -- cgit v1.2.3