---
 src/app/models/task.rb                        |    2 ++
 src/db/migrate/20090831140000_create_tasks.rb |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/app/models/task.rb b/src/app/models/task.rb
index 8058089..18991c8 100644
--- a/src/app/models/task.rb
+++ b/src/app/models/task.rb
@@ -25,6 +25,8 @@ class Task < ActiveRecord::Base
   belongs_to :instance,          :class_name => "Instance",
                                  :foreign_key => "task_target_id"
 
+  belongs_to :user
+
   # moved associations here so that nested set :include directives work
 
   STATE_QUEUED       = "queued"
diff --git a/src/db/migrate/20090831140000_create_tasks.rb 
b/src/db/migrate/20090831140000_create_tasks.rb
index 612b0b5..fedea31 100644
--- a/src/db/migrate/20090831140000_create_tasks.rb
+++ b/src/db/migrate/20090831140000_create_tasks.rb
@@ -20,7 +20,7 @@
 class CreateTasks < ActiveRecord::Migration
   def self.up
     create_table :tasks do |t|
-      t.string    :user
+      t.string    :user_id
       t.string    :type
       t.string    :action
       t.string    :state
-- 
1.7.2.1

_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to