Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

lib/tasks/convert.rake
# PAGE_SIZE is the number of rows updated in a single transaction.
# This facilitates tables where the number of rows exceeds the systems
# memory
PAGE_SIZE=10000
PAGE_SIZE = 10000
namespace :db do
namespace :convert do
......
time = Time.now
ProductionModelClass.establish_connection(:production)
ProductionModelClass.table_name=table_name
ProductionModelClass.table_name = table_name
ProductionModelClass.reset_column_information
DevelopmentModelClass.establish_connection(:development)
......
end
DevelopmentModelClass.connection.execute(sql) if sql
DevelopmentModelClass.table_name=table_name
DevelopmentModelClass.table_name = table_name
DevelopmentModelClass.reset_column_information
DevelopmentModelClass.record_timestamps = false

Also available in: Unified diff