#1426 ✓resolved
brianp

Migrations/Setup Don't create database

Reported by brianp | October 3rd, 2010 @ 04:02 AM | in 1.1

(I apologize for bad grammar)

Following the readme from: http://github.com/datamapper/dm-rails

Generate a new rails app via: rails new project_name -m http://datamapper.org/templates/rails.rb

Create a model:

class Person
  include DataMapper::Resource

  property :id, Serial

  property :first_name, String, :required => true 
  property :last_name, String, :required => true 

  property :created_at, DateTime
  property :created_on, Date
  property :updated_at, DateTime
  property :updated_on, Date
end

run rake db:migrate No errors occur but no progressive output is displayed.
run rake db:setup or rake db:automigration and receive:

[datamapper] Created database 'core_development.db'
[datamapper] Created database 'core_test.db'
but no database is in fact created.

There are entries for a database generation in logs/development.log but there is no path to a database file.
log file: http://www.pastie.org/private/kdy6azsbvahgwmrwb695bw

Rails -v 3.0.0
Ruby 1.9.2-head
RVM

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Referenced by

Pages