Author: assaf
Date: Fri May 9 17:15:46 2008
New Revision: 654988
URL: http://svn.apache.org/viewvc?rev=654988&view=rev
Log:
Stakeholder does not need a primary key.
Modified:
ode/sandbox/singleshot/app/models/stakeholder.rb
ode/sandbox/singleshot/db/migrate/20080506015119_stakeholders.rb
Modified: ode/sandbox/singleshot/app/models/stakeholder.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/app/models/stakeholder.rb?rev=654988&r1=654987&r2=654988&view=diff
==============================================================================
--- ode/sandbox/singleshot/app/models/stakeholder.rb (original)
+++ ode/sandbox/singleshot/app/models/stakeholder.rb Fri May 9 17:15:46 2008
@@ -3,7 +3,6 @@
#
# Table name: stakeholders
#
-# id :integer not null, primary key
# task_id :integer not null
# person_id :integer not null
# role :string(255) not null
Modified: ode/sandbox/singleshot/db/migrate/20080506015119_stakeholders.rb
URL:
http://svn.apache.org/viewvc/ode/sandbox/singleshot/db/migrate/20080506015119_stakeholders.rb?rev=654988&r1=654987&r2=654988&view=diff
==============================================================================
--- ode/sandbox/singleshot/db/migrate/20080506015119_stakeholders.rb (original)
+++ ode/sandbox/singleshot/db/migrate/20080506015119_stakeholders.rb Fri May 9
17:15:46 2008
@@ -1,6 +1,6 @@
class Stakeholders < ActiveRecord::Migration
def self.up
- create_table :stakeholders do |t|
+ create_table :stakeholders, :id=>false do |t|
t.integer :task_id, :null=>false
t.integer :person_id, :null=>false
t.string :role, :null=>false