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

Developer can invoke a rake task that renames schemas to implement suffix #6

Open
ramontayag opened this issue Jun 17, 2012 · 0 comments
Labels

Comments

@ramontayag
Copy link
Owner

It would be nice to have a built-in rake task to implement schema suffixes.

For example: I have a system that doesn't use suffixes, but I want to be able to duplicate schemas and be sure that Storey does not accidentally rename a text in the SQL file that doesn't actually refer to the schema name. I can then set Storey.suffix = '_nakam' and run rake storey:rename_schemas. This will rename all schemas except public.

Also add ability to change suffix even if you already have set one. For example, if I have schemas with the suffix '_nakam' and I want to make them '_pucha', then I can:

  1. Change the Storey.suffix = '_pucha'
  2. Run rake storey_rename_schemas PREV_SUFFIX=_nakam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant