Sha256: f565b49fcaf4179d85dc9cf7ac0a04027feddc98c5647c64954e688c771f98dc
Contents?: true
Size: 343 Bytes
Versions: 17
Compression:
Stored size: 343 Bytes
Contents
class AddCommitterEmailToCommits < ActiveRecord::Migration def up add_column :commits, :committer_email, :string Commit.all.each do |commit| commit.update_attribute(:committer_email, commit.native_commit.committer.email) if commit.native_commit end end def down remove_column :commits, :committer_email end end
Version data entries
17 entries across 17 versions & 1 rubygems