public
Created

Error: Already initialized constant VERSION with DB migration with RefineryCMS

  • Download Gist
Gemfile
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
source 'https://rubygems.org'
 
gem 'rails', '3.2.2'
 
group :development, :test do
gem 'sqlite3'
end
 
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
 
gem 'jquery-rails'
 
# Refinery CMS
gem 'refinerycms', '~> 2.0.0'
 
# Specify additional Refinery CMS Extensions here (all optional):
gem 'refinerycms-i18n', '~> 2.0.0'
gem 'refinerycms-portfolio', :git => 'git://github.com/resolve/refinerycms-portfolio.git', :branch => '2-0-stable'
rake_db_migrate_output.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
$ rake db:migrate
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:2: warning: already initialized constant VERSION
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MAJOR
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant BUILD
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant PATCH
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:6: warning: already initialized constant NUMBERS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake.rb:27: warning: already initialized constant RAKEVERSION
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake.rb:68: warning: already initialized constant FileList
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake.rb:69: warning: already initialized constant RakeFileUtils
rake aborted!
stack level too deep
 
(See full trace by running task with --trace)
rake_db_migrate_trace.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
$ rake db:migrate --trace
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:2: warning: already initialized constant VERSION
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MAJOR
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant MINOR
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant BUILD
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:5: warning: already initialized constant PATCH
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/version.rb:6: warning: already initialized constant NUMBERS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake.rb:27: warning: already initialized constant RAKEVERSION
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/early_time.rb:17: warning: already initialized constant EARLY
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/alt_system.rb:32: warning: already initialized constant WINDOWS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/application.rb:31: warning: already initialized constant DEFAULT_RAKEFILES
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/task_arguments.rb:77: warning: already initialized constant EMPTY_TASK_ARGS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/invocation_chain.rb:49: warning: already initialized constant EMPTY
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:9: warning: already initialized constant RUBY
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_utils.rb:86: warning: already initialized constant LN_SUPPORTED
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:16: warning: already initialized constant DEFAULT
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/dsl_definition.rb:150: warning: already initialized constant DeprecatedCommands
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:44: warning: already initialized constant ARRAY_METHODS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:47: warning: already initialized constant MUST_DEFINE
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:51: warning: already initialized constant MUST_NOT_DEFINE
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:55: warning: already initialized constant SPECIAL_RETURN
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:61: warning: already initialized constant DELEGATING_METHODS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:364: warning: already initialized constant DEFAULT_IGNORE_PATTERNS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake/file_list.rb:370: warning: already initialized constant DEFAULT_IGNORE_PROCS
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake.rb:68: warning: already initialized constant FileList
/home/gezope/.rvm/gems/ruby-1.9.2-p180@global/gems/rake-0.9.2.2/lib/rake.rb:69: warning: already initialized constant RakeFileUtils
rake aborted!
stack level too deep
/home/gezope/.rvm/gems/ruby-1.9.2-p180@rails32/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.