Skip to content
Browse files

Feedback follow_up action added

  • Loading branch information...
1 parent 90b37b1 commit 96a60dfbd73b390b7df8aef3ed5708ee8d5e273f @tompesman committed Jul 5, 2012
Showing with 3 additions and 0 deletions.
  1. +2 −0 lib/generators/templates/create_push.rb
  2. +1 −0 lib/push/feedback.rb
View
2 lib/generators/templates/create_push.rb
@@ -19,7 +19,9 @@ def self.up
create_table :push_feedback do |t|
t.string :device, :null => false
t.string :type, :null => false
+ t.string :follow_up, :null => false
t.timestamp :failed_at, :null => false
+ t.text :properties, :null => true
t.timestamps
end
View
1 lib/push/feedback.rb
@@ -3,6 +3,7 @@ class Feedback < ActiveRecord::Base
self.table_name = 'push_feedback'
validates :device, :presence => true
+ validates :follow_up, :presence => true
validates :failed_at, :presence => true
end
end

0 comments on commit 96a60df

Please sign in to comment.
Something went wrong with that request. Please try again.