Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to be usable in Rails 3.x #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Updates to be usable in Rails 3.x #2

wants to merge 2 commits into from

Conversation

fadzlan
Copy link

@fadzlan fadzlan commented Apr 17, 2012

Changed RAILS_ROOT constant to Rails.root. Unfortunately, this is not compatible with Rails 2.x.

Removed up and down method as well, change it to migrate. This way, up, down and change methods will be called accordingly from the migration files. The reversed logic in change method will also be written to the files.

Let me know if you need this to be compatible with Rails 2.x as well, and I can probably added few conditionals to detect the environments and probably added the up and down methods back in. Otherwise, those who are wishing to use it with Rails 2.x can fall back to use the previous version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant