Skip to content

Mongoid Storage - #74

Open
zakwanhaj wants to merge 1 commit into
chriskite:nextfrom
zakwanhaj:3e6b5cd5af42d767aedf50c318f2555b9b4bcbca
Open

Mongoid Storage#74
zakwanhaj wants to merge 1 commit into
chriskite:nextfrom
zakwanhaj:3e6b5cd5af42d767aedf50c318f2555b9b4bcbca

Conversation

@zakwanhaj

Copy link
Copy Markdown

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

@brutuscat

Copy link
Copy Markdown
Contributor

@zakwanhaj I'm happy to include this if you add tests and re-submit to the Medusa fork

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants