# Create a default user
AdminUser.create!(:email => 'ad...@example.com', :password => 'password', :password_confirmation => 'password')
So, when I try to migrate down this will fail because there is already a user present.
Any ideas?
Regards
Linus
Hi!In Rails 3.1 there is only one method for migrations called 'change'.
I want to run some code in a migration only when migrating up, not down. Is that possible?
The issue I have is that this code is inside a migration file from Active Admin:# Create a default user
AdminUser.create!(:email => 'ad...@example.com', :password => 'password', :password_confirmation => 'password')So, when I try to migrate down this will fail because there is already a user present.
Any ideas?