app/models/oauth2_token.rb in vidibus-oauth2_server-0.0.8 vs app/models/oauth2_token.rb in vidibus-oauth2_server-0.0.9

- old
+ new

@@ -13,12 +13,12 @@ field :code, :type => String field :code_expires_at, :type => Time field :token_expires_at, :type => Time - index :client_id - index :token - index :code + index({client_id: 1}) + index({token: 1}) + index({code: 1}) validates :client_id, :redirect_url, :presence => true validates :token, :code, :uniqueness => {:allow_blank => true} before_create :generate_code