{"action":"created","issue":{"url":"https://api.github.com/repos/rgeo/activerecord-postgis-adapter/issues/121","labels_url":"https://api.github.com/repos/rgeo/activerecord-postgis-adapter/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/rgeo/activerecord-postgis-adapter/issues/121/comments","events_url":"https://api.github.com/repos/rgeo/activerecord-postgis-adapter/issues/121/events","html_url":"https://github.com/rgeo/activerecord-postgis-adapter/pull/121","id":35169665,"number":121,"title":"Update column migration method to correctly set null: false","user":{"login":"srt32","id":2181356,"avatar_url":"https://avatars.githubusercontent.com/u/2181356?v=3","gravatar_id":"","url":"https://api.github.com/users/srt32","html_url":"https://github.com/srt32","followers_url":"https://api.github.com/users/srt32/followers","following_url":"https://api.github.com/users/srt32/following{/other_user}","gists_url":"https://api.github.com/users/srt32/gists{/gist_id}","starred_url":"https://api.github.com/users/srt32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srt32/subscriptions","organizations_url":"https://api.github.com/users/srt32/orgs","repos_url":"https://api.github.com/users/srt32/repos","events_url":"https://api.github.com/users/srt32/events{/privacy}","received_events_url":"https://api.github.com/users/srt32/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-06-06T18:19:31Z","updated_at":"2015-05-26T19:51:12Z","closed_at":"2014-06-07T19:38:16Z","pull_request":{"url":"https://api.github.com/repos/rgeo/activerecord-postgis-adapter/pulls/121","html_url":"https://github.com/rgeo/activerecord-postgis-adapter/pull/121","diff_url":"https://github.com/rgeo/activerecord-postgis-adapter/pull/121.diff","patch_url":"https://github.com/rgeo/activerecord-postgis-adapter/pull/121.patch"},"body":"  * Update `MainAdapter#create_table` to call `add_spatial_column`\r\n\r\nEdit:  Here is more specific information (taken from a comment that is now deleted):\r\n\r\nPreviously running \r\n\r\n```\r\ncreate_table :my_table do |t|\r\n  t.column :geometry, :geometry, null: false\r\nend\r\n```\r\nwould produce a table with the `geometry` column without `null: false`.  With this update, including the `null: false` flag will now set the column to be `null: false` as expected."},"comment":{"url":"https://api.github.com/repos/rgeo/activerecord-postgis-adapter/issues/comments/105646261","html_url":"https://github.com/rgeo/activerecord-postgis-adapter/pull/121#issuecomment-105646261","issue_url":"https://api.github.com/repos/rgeo/activerecord-postgis-adapter/issues/121","id":105646261,"user":{"login":"teeparham","id":54017,"avatar_url":"https://avatars.githubusercontent.com/u/54017?v=3","gravatar_id":"","url":"https://api.github.com/users/teeparham","html_url":"https://github.com/teeparham","followers_url":"https://api.github.com/users/teeparham/followers","following_url":"https://api.github.com/users/teeparham/following{/other_user}","gists_url":"https://api.github.com/users/teeparham/gists{/gist_id}","starred_url":"https://api.github.com/users/teeparham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teeparham/subscriptions","organizations_url":"https://api.github.com/users/teeparham/orgs","repos_url":"https://api.github.com/users/teeparham/repos","events_url":"https://api.github.com/users/teeparham/events{/privacy}","received_events_url":"https://api.github.com/users/teeparham/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T19:51:11Z","updated_at":"2015-05-26T19:51:11Z","body":"@jeremieweldin this is an old, closed issue that applies to the internals of the adapter. Check the readme for version 2 or 3, depending on which version of rails you're using. There are examples for adding polygon columns there."}}