Skip to content

Instantly share code, notes, and snippets.

@meelash
Created February 1, 2013 16:11
Show Gist options
  • Select an option

  • Save meelash/4692240 to your computer and use it in GitHub Desktop.

Select an option

Save meelash/4692240 to your computer and use it in GitHub Desktop.
Saleem-Abdul-Hamids-Computer:Purvue saleemabdulhamid$ rake NO_EXTRACTS=true db:seed
Environment: {"sessions"=>{"default"=>{"database"=>"saddle", "hosts"=>["localhost:27017"], "options"=>nil}}, "options"=>{"identity_map_enabled"=>true, "raise_not_found_error"=>false}}
Environment: {"sessions"=>{"default"=>{"database"=>"saddle", "hosts"=>["localhost:27017"], "options"=>nil}}, "options"=>{"identity_map_enabled"=>true, "raise_not_found_error"=>false}}
Host: localhost, Port: 27017
We're about to import our data
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
Creating Database Indices
rake db:mongoid:create_indexes
Environment: {"sessions"=>{"default"=>{"database"=>"saddle", "hosts"=>["localhost:27017"], "options"=>nil}}, "options"=>{"identity_map_enabled"=>true, "raise_not_found_error"=>false}}
Environment: {"sessions"=>{"default"=>{"database"=>"saddle", "hosts"=>["localhost:27017"], "options"=>nil}}, "options"=>{"identity_map_enabled"=>true, "raise_not_found_error"=>false}}
Host: localhost, Port: 27017
MONGOID: Created indexes on Account:
MONGOID: Index: {:name=>1}, Options: {}
MONGOID: Index: {:firm_id=>1}, Options: {}
MONGOID: Index: {:name=>1, :firm_id=>1}, Options: {}
MONGOID: Created indexes on Entity:
MONGOID: Index: {:parent_id=>1}, Options: {:background=>true}
MONGOID: Index: {:name=>1}, Options: {}
MONGOID: Created indexes on Index:
MONGOID: Index: {:name=>1}, Options: {}
MONGOID: Index: {:index=>1}, Options: {}
MONGOID: Index: {:firm_id=>1}, Options: {}
MONGOID: Index: {:name=>1, :firm_id=>1}, Options: {}
MONGOID: Index: {:index=>1, :firm_id=>1}, Options: {}
MONGOID: Created indexes on Performance:
MONGOID: Index: {:Account=>1}, Options: {}
MONGOID: Index: {:PerfDate=>1}, Options: {}
MONGOID: Index: {:PerfCategory=>1}, Options: {}
MONGOID: Index: {:Account=>1, :PerfCategory=>1, :PerfDate=>1}, Options: {}
MONGOID: Index: {:Account=>1, :Symbol=>1, :PerfDate=>1}, Options: {}
MONGOID: Created indexes on Position:
MONGOID: Index: {:PostDate=>1}, Options: {}
MONGOID: Index: {:Account=>1, :PostDate=>1}, Options: {}
MONGOID: Index: {:Account=>1, :Symbol=>1, :PostDate=>1, :Lot=>1}, Options: {}
MONGOID: Created indexes on Quote:
MONGOID: Index: {:name=>1}, Options: {}
MONGOID: Index: {:firm_id=>1}, Options: {}
MONGOID: Index: {:Index=>1, :firm_id=>1}, Options: {}
MONGOID: Created indexes on Security:
MONGOID: Index: {:Type=>1}, Options: {}
MONGOID: Index: {:Symbol=>1}, Options: {}
MONGOID: Created indexes on Transaction:
MONGOID: Index: {:PostDate=>1}, Options: {}
MONGOID: Index: {:Account=>1}, Options: {}
MONGOID: Index: {:Account=>1, :Symbol=>1, :PostDate=>1}, Options: {}
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
****************************************************************************************************
Seeding database structure
Created Firm: #<Firm _id: 510be8fbc2596bf696000001, _type: nil, name: "Test Firm", description: nil, address: nil, email: "admin@test.com", phone: nil, fax: nil, status: 1, serverpwd: "firm_password", asset_classes: {}, theme: {"baseFontFamily"=>"Arial", "bodybackgroundcolor"=>"#f5f5f5", "bodytextcolor"=>"#0c0d0c", "linkColor"=>"#13194f", "topbarcolor"=>"#333", "topbarfontcolor"=>"#ffffff", "topbarhoverfontcolor"=>"#ada5a5", "primarybuttoncolor"=>"#3d477a", "secondarybuttoncolor"=>"#cadbd7", "tablealtrowcolor"=>"#acd1f2", "tablebordercolor"=>"#333333", "chart1"=>"#fac300", "chart2"=>"#2BA6CB", "chart3"=>"#E0E4CC", "chart4"=>"#F38630", "chart5"=>"#FA6900", "chart6"=>"#A7DBD8", "chart7"=>"#E0E4CC", "chart8"=>"#F38630", "chart9"=>"#FA6900", "disclaimer"=>"This is a sample disclaimer."}, category_ids: [], ftp_user: "ftp_user">
rake aborted!
undefined method `default_index=' for #<User:0x007fcd2ad2dd00>
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/mongoid-3.0.16/lib/mongoid/attributes.rb:249:in `method_missing'
/Volumes/DataHD/Users/saleemabdulhamid/Business/freelance/NForm/Purvue/db/seeds.rb:126:in `<top (required)>'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `block in load'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `block in load_dependency'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:640:in `new_constants_in'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:223:in `load_dependency'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/gems/mongoid-3.0.16/lib/mongoid/railties/database.rake:13:in `block (2 levels) in <top (required)>'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `eval'
/Volumes/DataHD/Users/saleemabdulhamid/.rvm/gems/ruby-1.9.3-p362/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
Saleem-Abdul-Hamids-Computer:Purvue saleemabdulhamid$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment