{"action":"opened","issue":{"url":"https://api.github.com/repos/thoughtbot/scenic/issues/96","labels_url":"https://api.github.com/repos/thoughtbot/scenic/issues/96/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/scenic/issues/96/comments","events_url":"https://api.github.com/repos/thoughtbot/scenic/issues/96/events","html_url":"https://github.com/thoughtbot/scenic/issues/96","id":121068235,"number":96,"title":"View dependencies in migration","user":{"login":"randomor","id":544408,"avatar_url":"https://avatars.githubusercontent.com/u/544408?v=3","gravatar_id":"","url":"https://api.github.com/users/randomor","html_url":"https://github.com/randomor","followers_url":"https://api.github.com/users/randomor/followers","following_url":"https://api.github.com/users/randomor/following{/other_user}","gists_url":"https://api.github.com/users/randomor/gists{/gist_id}","starred_url":"https://api.github.com/users/randomor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/randomor/subscriptions","organizations_url":"https://api.github.com/users/randomor/orgs","repos_url":"https://api.github.com/users/randomor/repos","events_url":"https://api.github.com/users/randomor/events{/privacy}","received_events_url":"https://api.github.com/users/randomor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-08T18:24:55Z","updated_at":"2015-12-08T18:24:55Z","closed_at":null,"body":"I'm running into this issue when I do `rake test db:schema:load` it doesn't work and generate this error message: `relation \"recent_summaries\" does not exist` , possibly because this new view `recent_decorated_summaries` is calling `recent_summaries` view and `recent_summaries` view is also depend on other two views, while both views are generated in the same transactions when doing schema load. If I rollback that top migration (which is the one that generate the above error) and do `rake test db:schema:load` and then `rake test db:migrate`, it will work. \r\n\r\nThe only work-around I have is basically copy the two views `recent_summaries` depends on and paste them into this`recent_decorated_summaries` so there is less levels of dependencies.\r\n\r\nAnyone had this issue before?"}}