Some projects that I try and learn from don’t have a schema.rb file, why is that?
Can this be generated somehow?
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.
sure, do the rake db:migrate (if you didn’t make it already) and rake db:schema:dump.
I personally don’t commit my schema.rb, that’s because when you have more than one developer working on the same project, there is always merge problem, since this file change always.
check the .gitignore file and see if schema.rb is there, if you really want to push it to your repository, comment or remove this entry from your .gitignore