diff options
author | francis <francis> | 2008-04-04 01:44:41 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-04 01:44:41 +0000 |
commit | 1f41d08568c692c50d7ab536402d02cec8a00c75 (patch) | |
tree | e9dccb4531e48e3e7bd76a01b5e078b124a21ab6 /db/schema.rb | |
parent | fa6c0d1610ccad8c89a36411745c80b2408e0854 (diff) |
Unique indices for track things tables.
Annotate models.
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 33e01f82d..3a8433f47 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 => 50) do +ActiveRecord::Schema.define(:version => 51) do create_table "incoming_messages", :force => true do |t| t.integer "info_request_id", :null => false @@ -129,6 +129,8 @@ ActiveRecord::Schema.define(:version => 50) do t.datetime "updated_at" end + add_index "track_things", ["tracking_user_id", "track_query"], :name => "index_track_things_on_tracking_user_id_and_track_query", :unique => true + create_table "track_things_sent_emails", :force => true do |t| t.integer "track_thing_id", :null => false t.integer "info_request_event_id" @@ -138,6 +140,8 @@ ActiveRecord::Schema.define(:version => 50) do t.datetime "updated_at" end + add_index "track_things_sent_emails", ["track_thing_id"], :name => "track_things_sent_emails_unique_index", :unique => true + create_table "user_info_request_sent_alerts", :force => true do |t| t.integer "user_id", :null => false t.integer "info_request_id", :null => false |