{"action":"opened","issue":{"url":"https://api.github.com/repos/learn-co-curriculum/active-record-mechanics-crud/issues/8","repository_url":"https://api.github.com/repos/learn-co-curriculum/active-record-mechanics-crud","labels_url":"https://api.github.com/repos/learn-co-curriculum/active-record-mechanics-crud/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-curriculum/active-record-mechanics-crud/issues/8/comments","events_url":"https://api.github.com/repos/learn-co-curriculum/active-record-mechanics-crud/issues/8/events","html_url":"https://github.com/learn-co-curriculum/active-record-mechanics-crud/issues/8","id":386627492,"node_id":"MDU6SXNzdWUzODY2Mjc0OTI=","number":8,"title":"Add additional info","user":{"login":"nclairesays","id":45305029,"node_id":"MDQ6VXNlcjQ1MzA1MDI5","avatar_url":"https://avatars0.githubusercontent.com/u/45305029?v=4","gravatar_id":"","url":"https://api.github.com/users/nclairesays","html_url":"https://github.com/nclairesays","followers_url":"https://api.github.com/users/nclairesays/followers","following_url":"https://api.github.com/users/nclairesays/following{/other_user}","gists_url":"https://api.github.com/users/nclairesays/gists{/gist_id}","starred_url":"https://api.github.com/users/nclairesays/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nclairesays/subscriptions","organizations_url":"https://api.github.com/users/nclairesays/orgs","repos_url":"https://api.github.com/users/nclairesays/repos","events_url":"https://api.github.com/users/nclairesays/events{/privacy}","received_events_url":"https://api.github.com/users/nclairesays/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-03T01:37:25Z","updated_at":"2018-12-03T01:37:25Z","closed_at":null,"author_association":"NONE","body":"Hi, I finished reading this page, and went on trying to work on the Mechanics of Migration lab. \r\n\r\nCan you add information in this read me AND in the Mechanics of Migration lab on where to add code to connect to DB and creating table using sql?  For the purposes of my class, I ended up having to skip some of the SQL lessons and went to Active Record lessons first.  Not sure if this information is already obvious through the SQL lessons but can you add info about where to add the following code? The current instructions simply say, \"This is how we would connect to a database\" and \"Let's create our table using SQL:\" but it doesn't tell us exactly where the code should be. I think it would be a great help for future students as well. Thanks.\r\n\r\n```\r\nconnection = ActiveRecord::Base.establish_connection(\r\n  :adapter => \"sqlite3\",\r\n  :database => \"db/students.sqlite\"\r\n)\r\n```\r\nand\r\n```\r\nsql = <<-SQL\r\n  CREATE TABLE IF NOT EXISTS students (\r\n  id INTEGER PRIMARY KEY, \r\n  name TEXT\r\n  )\r\nSQL\r\n \r\nActiveRecord::Base.connection.execute(sql)\r\n```"}}
{"actor":{"display_login":"nclairesays"}}