12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/paraphraser/convertor.rb', line 12
def convert
apply_obj_overrides
exit(0) unless agree_to_proceed?
Rake::Task['db:drop'].invoke
Rake::Task['db:create'].invoke
with_ar_stubbed do
announce "CreateSchemaMigrations"
migrations.each do |migration|
announce "#{migration.version} : #{migration.name}"
migration.migrate(direction)
update_schema_migrations_table(migration.version)
end
end
print_without_file_output "\nWe're done! You could either copy the output above or give ./migration.sql for *the dba review*\n\n"
end
|