lib/pleiades/generators/pleiades/setup/setup_generator.rb in pleiades-0.1.2 vs lib/pleiades/generators/pleiades/setup/setup_generator.rb in pleiades-0.1.3

- old
+ new

@@ -17,11 +17,11 @@ end def gen_base_command return if base_command_exist? - copy_file File.basename(command_file_path), command_file_path + copy_file File.basename(base_command_path), base_command_path end def gen_command_concern return if command_concern_exist? @@ -49,15 +49,15 @@ end # UserModelのマイグレーションファイル生成 def gen_user_table generate 'model', "user #{migration_arguments}" - + user_schemas.each_pair do |key, val| next unless val[:options] inject_into_file( - migration_file_path, + Dir.glob(migration_file_path).last, ", #{val[:options]}", after: key ) end end