{"action":"closed","issue":{"url":"https://api.github.com/repos/code-corps/code-corps-api/issues/55","repository_url":"https://api.github.com/repos/code-corps/code-corps-api","labels_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/55/comments","events_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/55/events","html_url":"https://github.com/code-corps/code-corps-api/issues/55","id":170195655,"number":55,"title":"Issue with organizations table","user":{"login":"green-arrow","id":2180127,"avatar_url":"https://avatars.githubusercontent.com/u/2180127?v=3","gravatar_id":"","url":"https://api.github.com/users/green-arrow","html_url":"https://github.com/green-arrow","followers_url":"https://api.github.com/users/green-arrow/followers","following_url":"https://api.github.com/users/green-arrow/following{/other_user}","gists_url":"https://api.github.com/users/green-arrow/gists{/gist_id}","starred_url":"https://api.github.com/users/green-arrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/green-arrow/subscriptions","organizations_url":"https://api.github.com/users/green-arrow/orgs","repos_url":"https://api.github.com/users/green-arrow/repos","events_url":"https://api.github.com/users/green-arrow/events{/privacy}","received_events_url":"https://api.github.com/users/green-arrow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/code-corps/code-corps-api/labels/high%20priority","name":"high priority","color":"b60205"},{"url":"https://api.github.com/repos/code-corps/code-corps-api/labels/in%20progress","name":"in progress","color":"c2e0c6"},{"url":"https://api.github.com/repos/code-corps/code-corps-api/labels/S","name":"S","color":"eeeeee"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-08-09T15:25:14Z","updated_at":"2016-10-03T18:00:59Z","closed_at":"2016-10-03T18:00:59Z","body":"It looks like the organizations table is being defined with nullable columns on `name` and `slug`. In the existing schema, both of these are `NOT NULL` columns. Is this change intentional?\r\n\r\nIf they should be `NOT NULL`, it will cause some issues with the controller test cases. We'll no longer be able to just `Repo.insert! %Organization{}`, since those fields must have values now. Additionally, the \"does not update chosen resource ...\" test will fail, because generating a changeset when using a struct with existing data with no params is still a valid changeset.\r\n\r\n```elixir\r\nchangeset = Organization.changeset(%{name: \"Name\", description: \"Description\"}, %{})\r\nchangeset.valid? == true\r\n```"}}
{"actor":{"display_login":"JoshSmith"}}