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

Is it possible to have it enabled only for some migrations instead of disabling them for some? #10

Open
alex-fedorov opened this issue Jan 26, 2015 · 0 comments · May be fixed by #12
Open

Comments

@alex-fedorov
Copy link

ie:

in config:

config.active_record.without_mysql_lock_by_default = true

in migration:

with_lock do
  # ... alter table commands ...
end

all migration that are not run inside of with_lock block, will behave as if they were executed inside of without_lock block.

WDYT?

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