diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/047_add_calculated_state.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 11 |
2 files changed, 15 insertions, 5 deletions
diff --git a/db/migrate/047_add_calculated_state.rb b/db/migrate/047_add_calculated_state.rb new file mode 100644 index 000000000..5e5b93512 --- /dev/null +++ b/db/migrate/047_add_calculated_state.rb @@ -0,0 +1,9 @@ +class AddCalculatedState < ActiveRecord::Migration + def self.up + add_column :info_request_events, :calculated_state, :string, :default => nil + end + + def self.down + remove_column :info_request_events, :calculated_state + end +end diff --git a/db/schema.rb b/db/schema.rb index dbdc7f4fd..6f4c975ae 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 => 46) do +ActiveRecord::Schema.define(:version => 47) do create_table "incoming_messages", :force => true do |t| t.integer "info_request_id", :null => false @@ -19,11 +19,12 @@ ActiveRecord::Schema.define(:version => 46) do end create_table "info_request_events", :force => true do |t| - t.integer "info_request_id", :null => false - t.text "event_type", :null => false - t.text "params_yaml", :null => false - t.datetime "created_at", :null => false + t.integer "info_request_id", :null => false + t.text "event_type", :null => false + t.text "params_yaml", :null => false + t.datetime "created_at", :null => false t.string "described_state" + t.string "calculated_state" end create_table "info_requests", :force => true do |t| |