Schema rb not updating
I have multiple branches each with a migration file.So when I checkout a branch, I do a db:migrate and it would in turn update my file.In the current XHTML 1.0 Recommendation document, as published and revised to August 2002, the W3C commented that, "The XHTML family is the next step in the evolution of the Internet.By migrating to XHTML today, content developers can enter the XML world with all of its attendant benefits, while still remaining confident in their content's backward and future compatibility." However, in 2005, the Web Hypertext Application Technology Working Group (WHATWG) formed, independently of the W3C, to work on advancing ordinary HTML not based on XHTML.
Rails checks which migrations it needs to run by comparing the timestamp of the last run migration and seeing if there are any newer. Does anyone have any idea about what could cause this problem. rake:redo rake:rollback don't work because the schema is not aware of the changes in database. Active Record:: Base.connection.do |table| result = Active Record:: Base.connection.execute("SELECT id FROM # ORDER BY id DESC LIMIT 1") rescue ( puts "Warning: not procesing table #. Although it seems like it might be the cause, but doesn't the reset happen before the file is accessed? when I run rake db:reset, the rescue statement in the first line displays: Warning: not procesing table schema_migrations. I guess I am confused why this statement is rescuing this? result.first['id'].to_i 1 : 1 puts "Resetting auto increment ID for # to #" Active Record:: Base.connection.execute("ALTER SEQUENCE #_id_seq RESTART WITH #") end at the bottom of the file, which is meant to handle indexing of the seeds file.