minor fixes

qedi 10 anni fa
parent
commit
1294d47bba
2 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  1. 1 2
      app/models/event.rb
  2. 0 1
      db/migrate/20140216201250_add_propagate_immediately_to_agent.rb

+ 1 - 2
app/models/event.rb

@@ -6,8 +6,7 @@ require 'json_serialized_field'
6 6
 class Event < ActiveRecord::Base
7 7
   include JSONSerializedField
8 8
 
9
-  attr_accessor :propagate_immediately
10
-  attr_accessible :lat, :lng, :payload, :user_id, :user, :expires_at, :propagate_immediately
9
+  attr_accessible :lat, :lng, :payload, :user_id, :user, :expires_at
11 10
 
12 11
   acts_as_mappable
13 12
 

+ 0 - 1
db/migrate/20140216201250_add_propagate_immediately_to_agent.rb

@@ -1,7 +1,6 @@
1 1
 class AddPropagateImmediatelyToAgent < ActiveRecord::Migration
2 2
   def up
3 3
     add_column :agents, :propagate_immediately, :boolean, :default => false, :null => false
4
-    execute "UPDATE agents SET propagate_immediately = 0"
5 4
   end
6 5
 
7 6
   def down