scripts/import/database_import.rb
Method run
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def run
# We only want questions and answers; nuke anything that isn't
query "DELETE FROM #{table 'posts'} WHERE #{column 'post_type_id'} NOT IN (1, 2)"
# Change post user IDs to SE account IDs so we can re-associate them with users later