@@ -46,8 +46,7 @@ def migrate_up(migrations, target_version)
4646        ActiveRecord ::Migrator . new ( :up ,  migrations , 
4747          ActiveRecord ::Base . connection . schema_migration , 
4848          ActiveRecord ::Base . connection . internal_metadata , 
49-           target_version 
50-         ) 
49+           target_version ) 
5150      else 
5251        ActiveRecord ::Migrator . new ( :up ,  migrations ,  ActiveRecord ::SchemaMigration ,  target_version ) 
5352      end 
@@ -71,7 +70,7 @@ def define_migrate_list
7170            else 
7271              notify  "You have #{ pending_migrations . size }   pending migrations" ,  group 
7372              pending_migrations . each  do  |migration |
74-                 notify  "  %4d %s %s"  % [   migration . version ,  migration . migration_group . to_s [ 0 ..5 ] . center ( 6 ) ,  migration . name   ] 
73+                 notify  "  %4d %s %s"  % [ migration . version ,  migration . migration_group . to_s [ 0 ..5 ] . center ( 6 ) ,  migration . name ] 
7574              end 
7675            end 
7776          end 
@@ -94,10 +93,10 @@ def define_migrate_group
9493              end 
9594
9695              schema_format  =  if  ActiveRecord ::VERSION ::MAJOR  >= 7 
97-                                  ActiveRecord . schema_format 
98-                                else 
99-                                  ActiveRecord ::Base . schema_format 
100-                                end 
96+                 ActiveRecord . schema_format 
97+               else 
98+                 ActiveRecord ::Base . schema_format 
99+               end 
101100
102101              Rake ::Task [ "db:schema:dump" ] . invoke  if  schema_format  == :ruby 
103102              Rake ::Task [ "db:structure:dump" ] . invoke  if  schema_format  == :sql 
@@ -110,10 +109,10 @@ def define_migrate_group
110109    def  define_convenience_tasks 
111110      namespace  :db  do 
112111        namespace  :migrate  do 
113-           [   :list ,  :group   ] . each  do  |ns |
112+           [ :list ,  :group ] . each  do  |ns |
114113            namespace  ns  do 
115114              MigrationTools ::MIGRATION_GROUPS . each  do  |migration_group |
116-                 desc  "#{ ns  == :list  ? 'Lists'  : 'Executes'   }   the migrations for group #{ migration_group }  " 
115+                 desc  "#{ ns  == :list  ? 'Lists'  : 'Executes' }   the migrations for group #{ migration_group }  " 
117116                task  migration_group  =>  :environment  do 
118117                  self . group  =  migration_group . to_s 
119118                  Rake ::Task [ "db:migrate:#{ ns }  " ] . invoke 
@@ -144,7 +143,7 @@ def notify(string, group = "")
144143      if  group . empty? 
145144        puts  string 
146145      else 
147-         puts  string  +  "  for group \" " + group + " \" "
146+         puts  " #{ string }   for group \" #{ group } \" "
148147      end 
149148    end 
150149  end 
0 commit comments