{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/22139","labels_url":"https://api.github.com/repos/rails/rails/issues/22139/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/22139/comments","events_url":"https://api.github.com/repos/rails/rails/issues/22139/events","html_url":"https://github.com/rails/rails/issues/22139","id":114409596,"number":22139,"title":"Edge Guides - ActiveRecord Migrations - Remove 'required' option for column","user":{"login":"atul-shimpi","id":13537588,"avatar_url":"https://avatars.githubusercontent.com/u/13537588?v=3","gravatar_id":"","url":"https://api.github.com/users/atul-shimpi","html_url":"https://github.com/atul-shimpi","followers_url":"https://api.github.com/users/atul-shimpi/followers","following_url":"https://api.github.com/users/atul-shimpi/following{/other_user}","gists_url":"https://api.github.com/users/atul-shimpi/gists{/gist_id}","starred_url":"https://api.github.com/users/atul-shimpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atul-shimpi/subscriptions","organizations_url":"https://api.github.com/users/atul-shimpi/orgs","repos_url":"https://api.github.com/users/atul-shimpi/repos","events_url":"https://api.github.com/users/atul-shimpi/events{/privacy}","received_events_url":"https://api.github.com/users/atul-shimpi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-31T12:46:06Z","updated_at":"2015-11-05T08:58:17Z","closed_at":null,"body":"Edge guide says 'required' as one of the options for adding or changing columns in migration methods\r\n\r\nUrl : http://edgeguides.rubyonrails.org/active_record_migrations.html\r\nSection : 3.5 Column Modifiers\r\nSection Content :\r\nColumn modifiers can be applied when creating or changing a column:\r\n**required** Adds required: true for belongs_to associations and null: false to the column in the migration.\r\n\r\nHowever, in api doc 'required' is not there. Below are the options for column.\r\ncolumn(name, type, options = {}) Link\r\nInstantiates a new column for the table. The type parameter is normally one of the migrations native types, which is one of the following: :primary_key, :string, :text, :integer, :float, :decimal, :datetime, :time, :date, :binary, :boolean.\r\n\r\nYou may use a type not in this list as long as it is supported by your database (for example, “polygon” in MySQL), but this will not be database agnostic and should usually be avoided.\r\n\r\nAvailable options are (none of these exists by default):\r\n\r\n:limit - Requests a maximum column length. This is number of characters for :string and :text columns and number of bytes for :binary and :integer columns.\r\n:default - The column's default value. Use nil for NULL.\r\n:null - Allows or disallows NULL values in the column. This option could have been named :null_allowed.\r\n:precision - Specifies the precision for a :decimal column.\r\n:scale - Specifies the scale for a :decimal column.\r\n:index - Create an index for the column. Can be either true or an options hash.\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/153993133","html_url":"https://github.com/rails/rails/issues/22139#issuecomment-153993133","issue_url":"https://api.github.com/repos/rails/rails/issues/22139","id":153993133,"user":{"login":"atul-shimpi","id":13537588,"avatar_url":"https://avatars.githubusercontent.com/u/13537588?v=3","gravatar_id":"","url":"https://api.github.com/users/atul-shimpi","html_url":"https://github.com/atul-shimpi","followers_url":"https://api.github.com/users/atul-shimpi/followers","following_url":"https://api.github.com/users/atul-shimpi/following{/other_user}","gists_url":"https://api.github.com/users/atul-shimpi/gists{/gist_id}","starred_url":"https://api.github.com/users/atul-shimpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atul-shimpi/subscriptions","organizations_url":"https://api.github.com/users/atul-shimpi/orgs","repos_url":"https://api.github.com/users/atul-shimpi/repos","events_url":"https://api.github.com/users/atul-shimpi/events{/privacy}","received_events_url":"https://api.github.com/users/atul-shimpi/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T08:58:17Z","updated_at":"2015-11-05T08:58:17Z","body":"@senny \r\nAny comments?"}}