Skip to content

Instantly share code, notes, and snippets.

@9cardinals
Created November 26, 2013 02:55
Show Gist options
  • Save 9cardinals/7652799 to your computer and use it in GitHub Desktop.
Save 9cardinals/7652799 to your computer and use it in GitHub Desktop.
error on model generation
vera:bloccit monicacardinal$ bundle exec bin/rails generate model Post title:string body text
invoke active_record
/Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.12/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined method `migration_error=' for #<Class:0x007fa9d3fdaca8> (NoMethodError)
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.12/lib/active_record/railtie.rb:66:in `block (3 levels) in <class:Railtie>'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.12/lib/active_record/railtie.rb:65:in `each'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.12/lib/active_record/railtie.rb:65:in `block (2 levels) in <class:Railtie>'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.12/lib/active_record/base.rb:720:in `<top (required)>'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.12/lib/rails/generators/named_base.rb:166:in `pluralize_table_names?'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.12/lib/rails/generators/named_base.rb:114:in `table_name'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.12/lib/rails/generators/active_record/model/model_generator.rb:17:in `create_migration_file'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `block in invoke_all'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `each'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `map'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `invoke_all'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/group.rb:233:in `dispatch'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:109:in `invoke'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/group.rb:278:in `block in _invoke_for_class_method'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/shell.rb:74:in `with_padding'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/group.rb:267:in `_invoke_for_class_method'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/group.rb:134:in `_invoke_from_option_orm'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `block in invoke_all'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `each'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `map'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/invocation.rb:127:in `invoke_all'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/group.rb:233:in `dispatch'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.12/lib/rails/generators.rb:171:in `invoke'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.12/lib/rails/commands/generate.rb:12:in `<top (required)>'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in `require'
from /Users/monicacardinal/.rvm/gems/ruby-2.0.0-p247/gems/railties-3.2.12/lib/rails/commands.rb:29:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
vera:bloccit monicacardinal$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment