diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-27 16:10:47 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-27 16:10:47 +0000 |
commit | b9e7978c92fc5295782799da1892d7492b97a12f (patch) | |
tree | b77512b43053493b2202d9c6cb66db57c13b12b3 /lib | |
parent | c7c70fdd5f212cd27feaad61e228e0bcb7dc52d3 (diff) |
Tell datamapper which is the primary key on the alert_earliest_changes
table
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/alert.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 8585767..cf87f0d 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -14,7 +14,7 @@ module Mauve include DataMapper::Resource - property :alert_id, Integer + property :alert_id, Integer, :key => true property :earliest, EpochTime belongs_to :alert, :model => "Alert" |