I created a rails app with the -O option (i.e. without ActiveRecord). But now I want to add active record to it. How can I accomplish that?
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.
Inside of
config/application.rbyou should see where theActiveRecordrailtie is commented out (see below).Uncomment it.
Also make sure to add a
database.ymlfile and the a database adapter gem (e.g.sqlite3) to your Gemfile.