{"action":"created","issue":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/655","labels_url":"https://api.github.com/repos/instructure/canvas-lms/issues/655/labels{/name}","comments_url":"https://api.github.com/repos/instructure/canvas-lms/issues/655/comments","events_url":"https://api.github.com/repos/instructure/canvas-lms/issues/655/events","html_url":"https://github.com/instructure/canvas-lms/issues/655","id":92956210,"number":655,"title":" undefined method `default_locale_changed?'","user":{"login":"derrickmar","id":4853140,"avatar_url":"https://avatars.githubusercontent.com/u/4853140?v=3","gravatar_id":"","url":"https://api.github.com/users/derrickmar","html_url":"https://github.com/derrickmar","followers_url":"https://api.github.com/users/derrickmar/followers","following_url":"https://api.github.com/users/derrickmar/following{/other_user}","gists_url":"https://api.github.com/users/derrickmar/gists{/gist_id}","starred_url":"https://api.github.com/users/derrickmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/derrickmar/subscriptions","organizations_url":"https://api.github.com/users/derrickmar/orgs","repos_url":"https://api.github.com/users/derrickmar/repos","events_url":"https://api.github.com/users/derrickmar/events{/privacy}","received_events_url":"https://api.github.com/users/derrickmar/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-04T01:01:09Z","updated_at":"2015-07-06T23:24:37Z","closed_at":"2015-07-06T15:22:07Z","body":"When running ```CODES.sh``` as specified on the getting started page, I'm getting an error when it tries to run the migrations\r\n\r\n```\r\nundefined method `default_locale_changed?' for #<Account:0x0000000efd4158>/home/vagrant/canvas-lms/gems/activesupport-suspend_callbacks/lib/active_support/callbacks/suspension.rb:111:in`instance_eval'\r\n```\r\n\r\nDoes anyone know a fix? Thank you\r\n\r\nFull stacktrace\r\n\r\n```\r\nundefined method `default_locale_changed?' for #<Account:0x0000000efd4158>/home/vagrant/canvas-lms/gems/activesupport-suspend_callbacks/lib/active_support/callbacks/suspension.rb:111:in `instance_eval'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/attribute_methods.rb:149:in `method_missing'\r\n(eval):564:in `run_callbacks'\r\n/home/vagrant/canvas-lms/gems/activesupport-suspend_callbacks/lib/active_support/callbacks/suspension.rb:111:in `instance_eval'\r\n/home/vagrant/canvas-lms/gems/activesupport-suspend_callbacks/lib/active_support/callbacks/suspension.rb:111:in `run_callbacks'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1622:in `block in run_callbacks'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/relation.rb:241:in `block in scoping'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/scoping.rb:98:in `with_scope'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/relation.rb:241:in `scoping'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1622:in `run_callbacks'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activemodel/lib/active_model/validations.rb:228:in `run_validations!'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activemodel/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!'\r\n(eval):36:in `run_callbacks'\r\n/home/vagrant/canvas-lms/gems/activesupport-suspend_callbacks/lib/active_support/callbacks/suspension.rb:111:in `instance_eval'\r\n/home/vagrant/canvas-lms/gems/activesupport-suspend_callbacks/lib/active_support/callbacks/suspension.rb:111:in `run_callbacks'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1622:in `block in run_callbacks'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/relation.rb:241:in `block in scoping'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/scoping.rb:98:in `with_scope'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/relation.rb:241:in `scoping'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1622:in `run_callbacks'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activemodel/lib/active_model/validations/callbacks.rb:53:in `run_validations!'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activemodel/lib/active_model/validations.rb:195:in `valid?'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/validations.rb:69:in `valid?'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/validations.rb:77:in `perform_validations'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/validations.rb:56:in `save!'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/attribute_methods/dirty.rb:33:in `save!'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/transactions.rb:264:in `block in save!'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/transactions.rb:208:in `transaction'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/active_record/base.rb:42:in `block in transaction'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/active_record/relation.rb:91:in `activate'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/active_record/base.rb:37:in `transaction'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/transactions.rb:264:in `save!'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/active_record/base.rb:90:in `block in save!'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/relation.rb:241:in `block in scoping'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/scoping.rb:98:in `with_scope'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/relation.rb:241:in `scoping'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/active_record/base.rb:90:in `save!'\r\n/home/vagrant/canvas-lms/app/models/account.rb:1085:in `block in get_special_account'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/default_shard.rb:6:in `activate'\r\n/home/vagrant/canvas-lms/app/models/account.rb:1066:in `get_special_account'\r\n(eval):2:in `default'\r\n/home/vagrant/canvas-lms/db/migrate/20121127212421_grandfather_default_account_invitation_previews.rb:6:in `up'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:370:in `up'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:410:in `block (2 levels) in migrate'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:410:in `block in migrate'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/connection_pool_proxy.rb:13:in `with_connection'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:389:in `migrate'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:338:in `migrate'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:528:in `migrate'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1453:in `block (2 levels) in migrate'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1467:in `block in ddl_transaction'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1467:in `ddl_transaction'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1451:in `block in migrate'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1427:in `each'\r\n/home/vagrant/canvas-lms/config/initializers/active_record.rb:1427:in `migrate'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:570:in `up'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/migration.rb:551:in `migrate'\r\n/home/vagrant/.bundler/ruby/1.9.1/rails-b344986bc3d9/activerecord/lib/active_record/railties/databases.rake:193:in `block (2 levels) in <top (required)>'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/tasks/switchman.rake:51:in `call'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/tasks/switchman.rake:51:in `each'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/tasks/switchman.rake:51:in `block (4 levels) in shardify_task'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/database_server.rb:93:in `unshackle'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/tasks/switchman.rake:50:in `block (3 levels) in shardify_task'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/app/models/switchman/shard.rb:130:in `with_each_shard'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/tasks/switchman.rake:45:in `block (2 levels) in shardify_task'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/switchman/shackles.rb:22:in `activate'\r\n/var/lib/gems/1.9.1/gems/switchman-1.2.35/lib/tasks/switchman.rake:19:in `block in shardify_task'\r\nTasks: TOP => db:initial_setup => db:migrate\r\n(See full trace by running task with --trace)\r\n```"},"comment":{"url":"https://api.github.com/repos/instructure/canvas-lms/issues/comments/119026120","html_url":"https://github.com/instructure/canvas-lms/issues/655#issuecomment-119026120","issue_url":"https://api.github.com/repos/instructure/canvas-lms/issues/655","id":119026120,"user":{"login":"ccutrer","id":191320,"avatar_url":"https://avatars.githubusercontent.com/u/191320?v=3","gravatar_id":"","url":"https://api.github.com/users/ccutrer","html_url":"https://github.com/ccutrer","followers_url":"https://api.github.com/users/ccutrer/followers","following_url":"https://api.github.com/users/ccutrer/following{/other_user}","gists_url":"https://api.github.com/users/ccutrer/gists{/gist_id}","starred_url":"https://api.github.com/users/ccutrer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccutrer/subscriptions","organizations_url":"https://api.github.com/users/ccutrer/orgs","repos_url":"https://api.github.com/users/ccutrer/repos","events_url":"https://api.github.com/users/ccutrer/events{/privacy}","received_events_url":"https://api.github.com/users/ccutrer/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T23:24:37Z","updated_at":"2015-07-06T23:24:37Z","body":"The fix has been pushed to the stable branch now."}}