ruby on rails - How to migrate a postgresql database -
we had developer developed website under local mac, , developer transferred zip file of rails site me, using windows.
could me on steps on how change database local postgresql database ? sorry new @ this.
so far:
1) i've edited database.yml
file, host localhost port 5432 , database name data1
, went pgadminii , create same database name.
2) i've created super user , supplied credential database.yml.
is need ? need setup else ? thanks!
you'll need change adapter in config/database.yaml
file whatever postgres
, along lines of:
development: adapter: postgresql database: data1 host: localhost username: password:
you need ensure have relevant gem in gemfile.
gem 'pg'
that should trick. run rake db:version
test connection, if seems go rake db:migrate
. post errors get.
Comments
Post a Comment