cirandas.net

ref: master

plugins/sub_organizations/db/migrate/20120615202224_approve_paternity_relation.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
class ApprovePaternityRelation < ActiveRecord::Migration
  def self.up
    create_table :sub_organizations_plugin_approve_paternity_relations do |t|
      t.references :task
      t.references :parent, :polymorphic => true
      t.references :child, :polymorphic => true
    end
  end

  def self.down
    drop_table :sub_organizations_plugin_approve_paternity_relations
  end
end