Method: Migr8::RepositoryOperation#history
- Defined in:
- lib/migr8.rb
#history ⇒ Object
356 357 358 359 360 361 362 363 364 365 366 367 368 369 |
# File 'lib/migr8.rb', line 356 def history mig_hist, mig_dict = _get_migrations_hist_and_applied() s = "" mig_hist.each do |mig| s << _to_line(mig) end if ! mig_dict.empty? s << "##\n" s << "## Applied to DB but not exist in history file:\n" s << "##\n" mig_dict.each {|ver, mig| s << _to_line(mig) } end return s end |