您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

036_add_changeset_commit_date.rb 253B

12345678910
  1. class AddChangesetCommitDate < ActiveRecord::Migration[4.2]
  2. def self.up
  3. add_column :changesets, :commit_date, :date
  4. Changeset.update_all "commit_date = committed_on"
  5. end
  6. def self.down
  7. remove_column :changesets, :commit_date
  8. end
  9. end