Make task for full migration
This commit is contained in:
parent
ee20b00f58
commit
0b265012bc
2 changed files with 5 additions and 2 deletions
|
|
@ -44,8 +44,8 @@ module DataConversion
|
|||
process_raw_requests
|
||||
process_raw_profiles
|
||||
process_raw_posts
|
||||
#post_visibilities
|
||||
#notifications
|
||||
process_raw_post_visibilities
|
||||
process_raw_notifications
|
||||
end
|
||||
|
||||
def truncate_tables
|
||||
|
|
|
|||
|
|
@ -27,4 +27,7 @@ namespace :migrations do
|
|||
migrator.log("**** Import finished! ****")
|
||||
migrator.log("total elapsed time")
|
||||
end
|
||||
|
||||
desc 'execute mongo to mysql migration. Requires mongoexport to be accessible.'
|
||||
task :migrate_to_mysql => [:export_for_mysql, :import_to_mysql]
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue