summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20130210075617_create_intruders.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20130210075617_create_intruders.rb b/db/migrate/20130210075617_create_intruders.rb
index bd4db0b..fc944cc 100644
--- a/db/migrate/20130210075617_create_intruders.rb
+++ b/db/migrate/20130210075617_create_intruders.rb
@@ -18,6 +18,8 @@ class CreateIntruders < ActiveRecord::Migration
t.string :comment
t.timestamps
end
+
+ add_index :intruders, :key, :unique => true
end
def self.down