Skip to content

Commit

Permalink
Change indexes of 'items' and 'messages' to column 'expire_at'
Browse files Browse the repository at this point in the history
  • Loading branch information
key-amb committed May 8, 2016
1 parent 2510cc2 commit 7a3d8c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions db/migrate/001_init_by_sequel.rb
Expand Up @@ -31,8 +31,8 @@
String :title, null: false
String :body, text: true, null: false
String :misc, text: true
DateTime :expire_at, null: false
DateTime :created_at, index: true, null: false
DateTime :expire_at, null: false, index: true
DateTime :created_at, null: false
DateTime :delivered_at
end

Expand All @@ -46,8 +46,8 @@
String :name, null: false
String :message, text: true, null: false
String :misc, text: true
DateTime :expire_at, null: false
DateTime :received_at, index: true, null: false
DateTime :expire_at, null: false, index: true
DateTime :received_at, null: false
end
end

Expand Down

0 comments on commit 7a3d8c1

Please sign in to comment.