diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-09-13 07:57:09 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-09-13 07:57:09 +0100 |
commit | dea8a85ceee0016b0dc06d19f926c407a5ab87bd (patch) | |
tree | 4a9b10160704d76b56ce406a7bdcac952bf255b6 /lib/mauve/history.rb | |
parent | 55464fe1e748ebfb54fd514a109ee0ac615a222c (diff) |
Version bumb
Diffstat (limited to 'lib/mauve/history.rb')
-rw-r--r-- | lib/mauve/history.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mauve/history.rb b/lib/mauve/history.rb index 5a0caff..76025a0 100644 --- a/lib/mauve/history.rb +++ b/lib/mauve/history.rb @@ -24,8 +24,8 @@ module Mauve # # This is horrid. FIXME! # - history_schema = '"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "type" VARCHAR(50) DEFAULT \'unknown\' NOT NULL, "event" TEXT DEFAULT \'Nothing set\' NOT NULL, "created_at" TIMESTAMP NOT NULL' - history_cols = 'id, type, event, created_at' + history_schema = '"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "type" VARCHAR(50) DEFAULT \'unknown\' NOT NULL, "event" TEXT DEFAULT \'Nothing set\' NOT NULL, "user" VARCHAR(50) DEFAULT NULL, "created_at" TIMESTAMP NOT NULL' + history_cols = 'id, type, event, user, created_at' ## # Now adjust the Histories table to remove its alert_id col # @@ -63,6 +63,7 @@ module Mauve property :id, Serial property :type, String, :required => true, :default => "unknown", :lazy => false property :event, Text, :required => true, :default => "Nothing set", :lazy => false + property :user, String property :created_at, Time, :required => true has n, :alerts, :through => :alerthistory |