From b9e7978c92fc5295782799da1892d7492b97a12f Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Tue, 27 Nov 2012 16:10:47 +0000 Subject: Tell datamapper which is the primary key on the alert_earliest_changes table --- lib/mauve/alert.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.1