diff options
author | francis <francis> | 2008-12-17 13:19:15 +0000 |
---|---|---|
committer | francis <francis> | 2008-12-17 13:19:15 +0000 |
commit | 3d0a8dd7dd1f404f99cecf13c8683b405ecb12fe (patch) | |
tree | 5765b39423434c5143056267fcff3aa22fde9545 /db | |
parent | abba46f3cb56666dfbf756c3f3650075c743418f (diff) |
Make waiting_response get set as described state of initial sent event.
Alter historical ones to that also.
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 |