adacosta/mongoid_rails_migrations — Issue #18: Empty Migration
Author: sh1ps
Created: 2011-12-17 23:31:08+00:00
State: open

Hello,

First of all, found this after quite a bit of frustration, so thank you so much. I seem to be having some trouble though, and it's sure I'm misunderstanding. In the end, the answer to this question doesn't really matter as it's a simple manual fix regardless.

I run: rails generate mongoid:migration add_birthday_to_users birthday:date

It creates the migration no problem, but it's empty.

class AddBirthdayToUsers < Mongoid::Migration
def self.up
end

def self.down
end
end

Is this how it's designed? Does this simply create the migration skeleton? I've already done the manual work necessary, I'm just asking for future reference to make sure I'm not missing something. Thanks again!