ruby on rails - Postgresql and devise db migrate failure -



ruby on rails - Postgresql and devise db migrate failure -

can't rake migrate db postgresql when using devise gem.

rake db:migrate --trace ** invoke db:migrate (first_time) ** invoke environment (first_time) ** execute environment ** invoke db:load_config (first_time) ** execute db:load_config ** execute db:migrate ** invoke db:_dump (first_time) ** execute db:_dump ** invoke db:schema:dump (first_time) ** invoke environment ** invoke db:load_config ** execute db:schema:dump

rake db:migrate:status returns nothing:

database: sampleapp_development status migration id migration name --------------------------------------------------

if rails g scaffold <whatever> name email , run rake db:migrate works well, devise...nothing.

gemfile:

source 'https://rubygems.org' # bundle border rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.1' # utilize postgresql database active record gem 'pg' # utilize scss stylesheets gem 'bootstrap-generators', '~> 3.1.1' gem 'sass-rails', '~> 4.0.3' gem 'bootstrap-sass', '~> 3.1.1' gem 'simple_form' gem 'rails_12factor', group: :production gem 'devise' # utilize uglifier compressor javascript assets gem 'uglifier', '>= 1.3.0' # utilize coffeescript .js.coffee assets , views gem 'coffee-rails', '~> 4.0.0' # see https://github.com/sstephenson/execjs#readme more supported runtimes # gem 'therubyracer', platforms: :ruby # utilize jquery javascript library gem 'jquery-rails' # turbolinks makes next links in web application faster. read more: https://github.com/rails/turbolinks gem 'turbolinks' # build json apis ease. read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates api under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc # spring speeds development keeping application running in background. read more: https://github.com/rails/spring gem 'spring', group: :development # utilize activemodel has_secure_password # gem 'bcrypt', '~> 3.1.7' # utilize unicorn app server # gem 'unicorn' # utilize capistrano deployment # gem 'capistrano-rails', group: :development # utilize debugger # gem 'debugger', group: [:development, :test]

please check migration file generated devise. generates file txt extension not run migrations.

need rename file rb extension work correctly.

ruby-on-rails postgresql devise rake

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -