{"action":"closed","issue":{"url":"https://api.github.com/repos/documentcloud/documentcloud/issues/106","labels_url":"https://api.github.com/repos/documentcloud/documentcloud/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/documentcloud/documentcloud/issues/106/comments","events_url":"https://api.github.com/repos/documentcloud/documentcloud/issues/106/events","html_url":"https://github.com/documentcloud/documentcloud/issues/106","id":35483684,"number":106,"title":"Migration's files in sync with development structrure.sql?","user":{"login":"nkokkos","id":38037,"avatar_url":"https://avatars.githubusercontent.com/u/38037?v=3","gravatar_id":"","url":"https://api.github.com/users/nkokkos","html_url":"https://github.com/nkokkos","followers_url":"https://api.github.com/users/nkokkos/followers","following_url":"https://api.github.com/users/nkokkos/following{/other_user}","gists_url":"https://api.github.com/users/nkokkos/gists{/gist_id}","starred_url":"https://api.github.com/users/nkokkos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkokkos/subscriptions","organizations_url":"https://api.github.com/users/nkokkos/orgs","repos_url":"https://api.github.com/users/nkokkos/repos","events_url":"https://api.github.com/users/nkokkos/events{/privacy}","received_events_url":"https://api.github.com/users/nkokkos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/documentcloud/documentcloud/labels/bug","name":"bug","color":"5319e7"},{"url":"https://api.github.com/repos/documentcloud/documentcloud/labels/devops","name":"devops","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-06-11T13:37:57Z","updated_at":"2015-02-09T20:21:59Z","closed_at":"2015-02-09T20:21:59Z","body":"Are the migration files in sync with the database sql structure?. \r\nThat it, does \r\n\r\n``rake db:migrate RAILS_ENV=development``  \r\n\r\nwork?\r\n\r\nBy just testing things out, I found out that, for start, it fails here:\r\nhttps://github.com/documentcloud/documentcloud/blob/master/db/migrate/20100114170350_regenerate_thumbnails.rb#L7\r\nsince the following does not work on rails 4 active record:\r\n\r\n``ids = Document.all(:select => 'id').map {|d| d.id }``\r\n\r\nThe following would work->\r\n``ids = Document.all.where(:id).map {|d| d.id }``\r\n\r\nIn general I have seen some activerecord calls in the migration files don't work in rails4"}}