Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
DB Refresh Error
== CreateProducts: migrating =================================================
-- create_table(:products)
-> 0.0067s
== CreateProducts: migrated (0.0068s) ========================================
== DeviseCreateAdminUsers: migrating =========================================
-- create_table(:admin_users)
-> 0.0123s
-- add_index(:admin_users, :email, {:unique=>true})
-> 0.0066s
-- add_index(:admin_users, :reset_password_token, {:unique=>true})
-> 0.0063s
== DeviseCreateAdminUsers: migrated (0.0256s) ================================
== CreateActiveAdminComments: migrating ======================================
-- create_table(:active_admin_comments)
-> 0.0086s
-- add_index(:active_admin_comments, [:namespace])
-> 0.0048s
-- add_index(:active_admin_comments, [:author_type, :author_id])
-> 0.0036s
-- add_index(:active_admin_comments, [:resource_type, :resource_id])
-> 0.0040s
== CreateActiveAdminComments: migrated (0.0214s) =============================
== CreateSpecs: migrating ====================================================
-- create_table(:specs)
-> 0.0043s
== CreateSpecs: migrated (0.0044s) ===========================================
== CreateCategories: migrating ===============================================
-- create_table(:categories)
-> 0.0047s
== CreateCategories: migrated (0.0048s) ======================================
== CreateSpecValues: migrating ===============================================
-- create_table(:spec_values)
-> 0.0062s
-- add_index(:spec_values, :product_id)
-> 0.0078s
== CreateSpecValues: migrated (0.0144s) ======================================
== AddCategoryIdToProduct: migrating =========================================
-- add_column(:products, :category_id, :integer, {:null=>false})
-> 0.0032s
-- add_index(:products, :category_id)
-> 0.0071s
== AddCategoryIdToProduct: migrated (0.0106s) ================================
== CreateSpecGroups: migrating ===============================================
-- create_table(:spec_groups)
-> 0.0081s
-- add_index(:spec_groups, :category_id)
-> 0.0049s
== CreateSpecGroups: migrated (0.0133s) ======================================
== AddSpecGroupIdToSpec: migrating ===========================================
-- add_column(:specs, :spec_group_id, :integer)
-> 0.0012s
-- add_index(:specs, :spec_group_id)
-> 0.0028s
== AddSpecGroupIdToSpec: migrated (0.0042s) ==================================
== CreateScores: migrating ===================================================
-- create_table(:scores)
-> 0.0064s
-- add_index(:scores, :rank)
-> 0.0044s
-- add_index(:scores, :scoreable_type)
-> 0.0055s
-- add_index(:scores, :scoreable_id)
-> 0.0046s
-- add_index(:scores, :spec_value_id)
-> 0.0049s
== CreateScores: migrated (0.0264s) ==========================================
== AddValueToSpecValue: migrating ============================================
-- add_column(:spec_values, :value, :decimal, {:null=>false})
-> 0.0050s
== AddValueToSpecValue: migrated (0.0052s) ===================================
== AddIncludeToSpec: migrating ===============================================
-- add_column(:specs, :include, :boolean)
-> 0.0022s
-- add_index(:specs, :include)
-> 0.0045s
== AddIncludeToSpec: migrated (0.0411s) ======================================
== AddIncludeToSpecGroup: migrating ==========================================
-- add_column(:spec_groups, :include, :boolean)
-> 0.0013s
-- add_index(:spec_groups, :include)
-> 0.0080s
== AddIncludeToSpecGroup: migrated (0.0095s) =================================
== AddWeightToSpecGroup: migrating ===========================================
-- add_column(:spec_groups, :weight, :integer)
-> 0.0017s
== AddWeightToSpecGroup: migrated (0.0018s) ==================================
== AddWeightToSpec: migrating ================================================
-- add_column(:specs, :weight, :integer)
-> 0.0007s
== AddWeightToSpec: migrated (0.0008s) =======================================
== AddActiveMonthsToCategory: migrating ======================================
-- add_column(:categories, :active_months, :integer, {:null=>false})
-> 0.0012s
== AddActiveMonthsToCategory: migrated (0.0014s) =============================
== AddUniqueIndexToScore: migrating ==========================================
-- add_index(:scores, [:product_id, :scoreable_type, :scoreable_id], {:unique=>true})
-> 0.0084s
== AddUniqueIndexToScore: migrated (0.0086s) =================================
== CreateContents: migrating =================================================
-- create_table(:contents)
-> 0.0051s
-- add_index(:contents, :type)
-> 0.0044s
-- add_index(:contents, :product_id)
-> 0.0071s
-- add_index(:contents, [:product_id, :type], {:unique=>true})
-> 0.0073s
== CreateContents: migrated (0.0352s) ========================================
== CreateTemplates: migrating ================================================
-- create_table(:templates)
-> 0.0070s
-- add_index(:templates, :name)
-> 0.0048s
-- add_index(:templates, :content)
-> 0.0058s
== CreateTemplates: migrated (0.0179s) =======================================
== AddAncestryToTemplate: migrating ==========================================
-- add_column(:templates, :ancestry, :string)
-> 0.0007s
-- add_index(:templates, :ancestry)
-> 0.0046s
-- add_index(:templates, [:name, :ancestry])
-> 0.0060s
== AddAncestryToTemplate: migrated (0.0116s) =================================
== AddCategoryIdToTemplate: migrating ========================================
-- add_column(:templates, :category_id, :integer)
-> 0.0018s
-- add_index(:templates, :category_id)
-> 0.0096s
== AddCategoryIdToTemplate: migrated (0.0116s) ===============================
== AddReviewTitleToProduct: migrating ========================================
-- add_column(:products, :review_title, :string)
-> 0.0028s
== AddReviewTitleToProduct: migrated (0.0029s) ===============================
== CreateFriendlyIdSlugs: migrating ==========================================
-- create_table(:friendly_id_slugs)
-> 0.0090s
-- add_index(:friendly_id_slugs, :sluggable_id)
-> 0.0055s
-- add_index(:friendly_id_slugs, [:slug, :sluggable_type])
-> 0.0037s
-- add_index(:friendly_id_slugs, [:slug, :sluggable_type, :scope], {:unique=>true})
-> 0.0042s
-- add_index(:friendly_id_slugs, :sluggable_type)
-> 0.0053s
== CreateFriendlyIdSlugs: migrated (0.0283s) =================================
== AddSlugToContent: migrating ===============================================
-- add_column(:contents, :slug, :string, {:null=>false})
-> 0.0021s
-- add_index(:contents, :slug, {:unique=>true})
-> 0.0064s
== AddSlugToContent: migrated (0.0087s) ======================================
== CreateRules: migrating ====================================================
-- create_table(:rules)
-> 0.0056s
-- add_index(:rules, :rule_method)
-> 0.0070s
== CreateRules: migrated (0.0129s) ===========================================
== AddRuleIdToTemplate: migrating ============================================
-- add_column(:templates, :rule_id, :integer)
-> 0.0036s
-- add_index(:templates, :rule_id)
-> 0.0108s
== AddRuleIdToTemplate: migrated (0.0149s) ===================================
== AddRuleParametersToTemplate: migrating ====================================
-- add_column(:templates, :rule_parameters, :string)
-> 0.0026s
== AddRuleParametersToTemplate: migrated (0.0028s) ===========================
== RemoveReviewTitleFromProduct: migrating ===================================
-- remove_column(:products, :review_title)
-> 0.0015s
== RemoveReviewTitleFromProduct: migrated (0.0016s) ==========================
== AddSpecIdAndProductIdIndexToSpecValue: migrating ==========================
-- add_index(:spec_values, [:spec_id, :product_id], {:unique=>true})
-> 0.0056s
== AddSpecIdAndProductIdIndexToSpecValue: migrated (0.0057s) =================
== AddNotesToSpec: migrating =================================================
-- add_column(:specs, :notes, :text)
-> 0.0026s
== AddNotesToSpec: migrated (0.0027s) ========================================
== AddAsinToProduct: migrating ===============================================
-- add_column(:products, :asin, :string)
-> 0.0017s
== AddAsinToProduct: migrated (0.0019s) ======================================
== CreateBrands: migrating ===================================================
-- create_table(:brands)
-> 0.0088s
-- add_index(:brands, :name)
-> 0.0048s
== CreateBrands: migrated (0.0139s) ==========================================
== AddBrandIdToProduct: migrating ============================================
-- add_column(:products, :brand_id, :integer)
-> 0.0011s
-- add_index(:products, :brand_id)
-> 0.0044s
== AddBrandIdToProduct: migrated (0.0057s) ===================================
== CreateImages: migrating ===================================================
-- create_table(:images)
-> 0.0082s
-- add_index(:images, :product_id)
-> 0.0032s
== CreateImages: migrated (0.0117s) ==========================================
== ActsAsTaggableOnMigration: migrating ======================================
-- create_table(:tags)
-> 0.0048s
-- create_table(:taggings)
-> 0.0065s
-- add_index(:taggings, :tag_id)
-> 0.0052s
-- add_index(:taggings, [:taggable_id, :taggable_type, :context])
-> 0.0046s
== ActsAsTaggableOnMigration: migrated (0.0216s) =============================
== AddGalleryIdToImage: migrating ============================================
-- add_column(:images, :gallery_id, :integer)
-> 0.0009s
-- add_index(:images, :gallery_id)
-> 0.0039s
== AddGalleryIdToImage: migrated (0.0050s) ===================================
== AddImageUidToImage: migrating =============================================
-- add_column(:images, :image_uid, :string)
-> 0.0027s
== AddImageUidToImage: migrated (0.0029s) ====================================
== RemoveUrlFromImages: migrating ============================================
-- remove_column(:images, :url)
-> 0.0013s
== RemoveUrlFromImages: migrated (0.0014s) ===================================
== RemoveHeightAndWidthFromImages: migrating =================================
-- remove_column(:images, :height)
-> 0.0007s
-- remove_column(:images, :width)
-> 0.0004s
== RemoveHeightAndWidthFromImages: migrated (0.0012s) ========================
== RemoveGalleryIdFromImage: migrating =======================================
-- remove_column(:images, :gallery_id)
-> 0.0011s
== RemoveGalleryIdFromImage: migrated (0.0436s) ==============================
== AddAmazonPriceToProduct: migrating ========================================
-- add_column(:products, :amazon_price, :integer)
-> 0.0008s
== AddAmazonPriceToProduct: migrated (0.0008s) ===============================
== AddAmazonPriceLastUpdatedAtToProducts: migrating ==========================
-- add_column(:products, :amazon_price_updated_at, :datetime)
-> 0.0013s
== AddAmazonPriceLastUpdatedAtToProducts: migrated (0.0014s) =================
rake aborted!
Missing secret
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/jeff-0.7.4/lib/jeff.rb:75:in `secret'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/jeff-0.7.4/lib/jeff.rb:71:in `sign'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/jeff-0.7.4/lib/jeff.rb:54:in `sign_with'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/jeff-0.7.4/lib/jeff.rb:182:in `build_options'
(eval):3:in `get'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/vacuum-0.5.0/lib/vacuum/request.rb:71:in `block (2 levels) in <class:Request>'
/Users/gilesbutler/Sites/Projects/Visor/Dev/master/app/models/amazon.rb:12:in `item_lookup'
/Users/gilesbutler/Sites/Projects/Visor/Dev/master/app/models/amazon.rb:23:in `price_lookup'
/Users/gilesbutler/Sites/Projects/Visor/Dev/master/app/models/product.rb:111:in `set_amazon_price'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:407:in `_run__4409255978759109041__save__callbacks'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/callbacks.rb:302:in `create_or_update'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/persistence.rb:106:in `save'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/validations.rb:51:in `save'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/attribute_methods/dirty.rb:32:in `save'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/transactions.rb:270:in `block (2 levels) in save'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/transactions.rb:326:in `block in with_transaction_returning_status'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `block in transaction'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:210:in `within_new_transaction'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/database_statements.rb:202:in `transaction'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/transactions.rb:209:in `transaction'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/transactions.rb:323:in `with_transaction_returning_status'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/transactions.rb:270:in `block in save'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/transactions.rb:281:in `rollback_active_record_state!'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/transactions.rb:269:in `save'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/persistence.rb:37:in `create'
/Users/gilesbutler/Sites/Projects/Visor/Dev/master/db/seeds.rb:29:in `<top (required)>'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `block in load'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/railties-4.0.2/lib/rails/engine.rb:540:in `load_seed'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/tasks/database_tasks.rb:154:in `load_seed'
/Users/gilesbutler/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-4.0.2/lib/active_record/railties/databases.rake:181:in `block (2 levels) in <top (required)>'
/Users/gilesbutler/Sites/Projects/Visor/Dev/master/lib/tasks/db.rake:7:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment