lib/localtower/status.rb in localtower-0.5.0 vs lib/localtower/status.rb in localtower-1.0.0
- old
+ new
@@ -6,10 +6,10 @@
ActiveRecord::Base.connection.execute("select * from schema_migrations;")
rescue => e
[]
end
- db_migrations = db_migrations.map { |e| e["version"].to_s }.sort.reverse
+ db_migrations = db_migrations.map { |e| e["version"].to_s }
files.map do |file_full_path|
name = file_full_path.split("/")[-1] # add_email_to_user.rb
time = name.split("_")[0] # 201203890987
status = db_migrations.include?(time) ? :done : :todo