{"action":"closed","issue":{"url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/41","repository_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect","labels_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/41/comments","events_url":"https://api.github.com/repos/PENGZhaoqing/CourseSelect/issues/41/events","html_url":"https://github.com/PENGZhaoqing/CourseSelect/issues/41","id":191923235,"number":41,"title":"#26 号 帖子的继续讨论请归并","user":{"login":"tangmaomao16","id":22199115,"avatar_url":"https://avatars.githubusercontent.com/u/22199115?v=3","gravatar_id":"","url":"https://api.github.com/users/tangmaomao16","html_url":"https://github.com/tangmaomao16","followers_url":"https://api.github.com/users/tangmaomao16/followers","following_url":"https://api.github.com/users/tangmaomao16/following{/other_user}","gists_url":"https://api.github.com/users/tangmaomao16/gists{/gist_id}","starred_url":"https://api.github.com/users/tangmaomao16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tangmaomao16/subscriptions","organizations_url":"https://api.github.com/users/tangmaomao16/orgs","repos_url":"https://api.github.com/users/tangmaomao16/repos","events_url":"https://api.github.com/users/tangmaomao16/events{/privacy}","received_events_url":"https://api.github.com/users/tangmaomao16/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T05:36:48Z","updated_at":"2016-11-28T06:09:36Z","closed_at":"2016-11-28T06:09:36Z","body":"@PENGZhaoqing @jewhau\r\njewhau 的代码是：\r\nclass AddOpenAttribute < ActiveRecord::Migration\r\nadd_column :courses, :course_open, :boolean, :default =>false\r\nend\r\n\r\n我想问，\r\n（1）我将第二行的courses删去，直接写open，如下：\r\nadd_column :open, :boolean, :default =>false\r\n我这样做，行不行？\r\n\r\n（2）另外，如果保留courses, 但是后面的不用:course_open，而直接写:open, 即\r\nadd_column :courses, :open, :boolean, :default =>false\r\n这样行不行？\r\n\r\n（3）其实我不是很明白add_column的具体含义。"}}
{"actor":{"display_login":"PENGZhaoqing"}}