You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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