postgresql - Rails database migration failing because of Postgres inet type -



postgresql - Rails database migration failing because of Postgres inet type -

i have rails(4.1.0) app works fine on heroku. however, on local machine, rake db:migrate fails due table devise uses inet datatype , using sqlite3 testing.

i have included postgres gem postgres_ext still coming error:

undefined method `inet' #<activerecord::connectionadapters::table:0x00000005fae9e8>/home/app/db/migrate/20141107192501_add_devise_to_users.rb:19:in `block in up'

if testing locally using postgres acceptable setup right adapters. sample database.yml:

common: &common adapter: postgresql encoding: utf8 template: template0 # required utf8 encoding username: <%= env["postgres_user"] %> password: <%= env["postgres_password"] %> host: <%= env["postgres_host"] %> development: <<: *common database: 'my_app_dev' # warning: database defined "test" erased , # re-generated development database when run "rake". # not set db same development or production. test: <<: *common database: 'my_app_test'

ruby-on-rails postgresql heroku devise

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -