Sha256: dee3ea09cfb6c385ec6ed4db0b249687e246392eee331003a5de95f0ee5ce1f3

Contents?: true

Size: 342 Bytes

Versions: 43

Compression:

Stored size: 342 Bytes

Contents

class AddSimpleAuditingOfTasks < ActiveRecord::Migration
  def self.up
    add_column :tasks, :created_by, :integer, :references => [:users, :party_id]
    add_column :tasks, :updated_by, :integer, :references => [:users, :party_id]
  end

  def self.down
    remove_column :tasks, :updated_by
    remove_column :tasks, :created_by
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
backlog-0.22.1 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.23.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.24.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.23.1 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.25.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.26.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.28.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.29.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.30.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.31.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.32.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.31.1 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.33.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.33.1 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.34.1 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.34.2 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.35.0 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.34 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.35.2 db/migrate/025_add_simple_auditing_of_tasks.rb
backlog-0.35.1 db/migrate/025_add_simple_auditing_of_tasks.rb