I would like to add the current migration level to an internal dashboard we use for server statistics? Is there an easy build in way to support this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can query the contents of the migrations table directly. You’ll get back an array of hashes containing everything in the migrations table, which will tell you which migrations are currently up: