diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/070_sent_are_waiting_response.rb | 8 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/db/migrate/070_sent_are_waiting_response.rb b/db/migrate/070_sent_are_waiting_response.rb new file mode 100644 index 000000000..af66705b5 --- /dev/null +++ b/db/migrate/070_sent_are_waiting_response.rb @@ -0,0 +1,8 @@ +class SentAreWaitingResponse < ActiveRecord::Migration + def self.up + InfoRequestEvent.update_all "described_state = 'waiting_response', calculated_state = 'waiting_response', last_described_at = created_at where event_type = 'sent'" + end + + def self.down + end +end diff --git a/db/schema.rb b/db/schema.rb index dd0a70937..e0b8d6217 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -9,7 +9,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 69) do +ActiveRecord::Schema.define(:version => 70) do create_table "acts_as_xapian_jobs", :force => true do |t| t.string "model", :null => false |