anemone icon indicating copy to clipboard operation
anemone copied to clipboard

Mongoid Storage

Open zakwanhaj opened this issue 11 years ago • 0 comments

Also, add this model anemone_page.rb in your app

class AnemonePage
    include Mongoid::Document

    field :url
    field :headers, type: Moped::BSON::Binary
    field :data, type: Moped::BSON::Binary
    field :body, type: Moped::BSON::Binary
    field :links, type: Array
    field :code, type: Integer
    field :visited, type: Boolean
    field :depth, type: Integer
    field :referer
    field :redirect_to
    field :response_time, type: Integer
    field :fetched, type: Boolean

    index({:url => 1}, {:unique => true})
end

zakwanhaj avatar May 25 '13 01:05 zakwanhaj