Skip to content

Instantly share code, notes, and snippets.

View scolon7251's full-sized avatar

Sam Colon scolon7251

  • Marin Management
  • New York, NY
View GitHub Profile
samuelcolonsmbp:biller samuelcolon$ rake db:migrate
== 20140607212454 RemoveOldTables: migrating ==================================
rake aborted!
StandardError: An error has occurred, all later migrations canceled:
Mysql2::Error: Table 'biller_development.customers' doesn't exist: SELECT `customers`.* FROM `customers`/Users/samuelcolon/.rvm/gems/ruby-2.1.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:301:in `query'
/Users/samuelcolon/.rvm/gems/ruby-2.1.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:301:in `block in execute'
/Users/samuelcolon/.rvm/gems/ruby-2.1.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'
/Users/samuelcolon/.rvm/gems/ruby-2.1.0/gems/activesupport-4.1.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/samuelcolon/.rvm/gems/ruby-2.1.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract_adapter.rb:367:in `
@scolon7251
scolon7251 / SQL Lite error
Created May 6, 2014 03:11
Error with SQL Lite 3
QLite3::ConstraintException - column email is not unique:
sqlite3 (1.3.9) lib/sqlite3/statement.rb:108:in `block in each'
sqlite3 (1.3.9) lib/sqlite3/statement.rb:107:in `each'
activerecord (4.1.0) lib/active_record/connection_adapters/sqlite3_adapter.rb:316:in `block in exec_query'
activerecord (4.1.0) lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log'
activesupport (4.1.0) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activerecord (4.1.0) lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log'
activerecord (4.1.0) lib/active_record/connection_adapters/sqlite3_adapter.rb:298:in `exec_query'
activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:78:in `exec_insert'
activerecord (4.1.0) lib/active_record/connection_adapters/abstract/database_statements.rb:105:in `insert'
@scolon7251
scolon7251 / Error Message
Created May 4, 2014 22:45
Error Pushing up to Heroku
Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.1.0
-----> Installing dependencies using 1.5.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Using minitest (4.7.5)
Installing multi_json (1.9.3)
Installing rake (10.3.1)
development:
secret_key_base: a235007b36537040bd9f8cb5cfa6341007b0c60f931e6b0a58677c2be06cab0c9630964cdf53834579ba9ed592e0d09de506e65bfbebb7ed3fcdb01343394d0e
test:
secret_key_base: d9c97891df376db2f0f5ecfee378895ccc4a73ed2b16a16a7094fb91e3db2a324fdf3c712e01a17088960cc766be3d52a7f966c94d77de078a2cafb6cfd4d42f
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Building native extensions. This could take a while...
ERROR: Error installing gollum:
ERROR: Failed to build gem native extension.
/Users/samuelcolon/.rvm/rubies/ruby-2.1.0/bin/ruby extconf.rb
checking for main() in -licui18n... no
checking for main() in -licui18n... no
***************************************************************************************
@scolon7251
scolon7251 / stack.rb
Created March 20, 2014 00:20
syntax error
require_relative "stacklike"
class Stack
include Stacklike
end
require 'string_extensions'
puts "This is a test".vowels.join('-')
@scolon7251
scolon7251 / LoadError
Created March 19, 2014 23:47
LoadError
/Users/samuelcolon/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- string_extensions.rb (LoadError)
from /Users/samuelcolon/.rvm/rubies/ruby-2.1.0/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from vowel_test.rb:1:in `<main>'