#1225 ✓resolved
Dawid Marcin Grzesiak

DataMapper.auto_migrate! doesn't call for custom (overwritten) automigrations

Reported by Dawid Marcin Grzesiak | March 26th, 2010 @ 01:05 PM | in 1.0.0

It should print XXXXXXXX on the screen:

require 'dm-core'
 
# setup the logger
DataMapper::Logger.new(STDOUT, :debug)
 
# connect to the DB
DataMapper.setup(:default, 'sqlite3::memory:')
 
class Person
  include DataMapper::Resource
 
  # properties
  property :id, Serial
  def self.auto_migrate!
    puts "XXXXXXXX"
    super
  end
end
 
DataMapper.auto_migrate!

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