Skip to content
This repository was archived by the owner on Mar 13, 2019. It is now read-only.

Skip attribute if it's in omitted attributes#3

Merged
eileencodes merged 1 commit intomasterfrom
skip-omitted-attributes-on-load
Jan 31, 2018
Merged

Skip attribute if it's in omitted attributes#3
eileencodes merged 1 commit intomasterfrom
skip-omitted-attributes-on-load

Conversation

@eileencodes
Copy link

There may be times when you want to use an existing script that has
attributes that should be ignored on the next dump. For example you are
no longer using a column in a table but haven't been able to drop it yet
replicate will still dump that column until it no longer exists. The
loader may not want to use this column. This is especially useful for
Rails 4.2 where you cannot write virtual attributes or attributes that
no longer exist. This way we can ignore the columns on load the same way
they're ignored on dump.

cc/ @github/rails-upgrades

There may be times when you want to use an existing script that has
attributes that should be ignored on the next dump. For example you are
no longer using a column in a table but haven't been able to drop it yet
replicate will still dump that column until it no longer exists. The
loader may not want to use this column. This is especially useful for
Rails 4.2 where you cannot write virtual attributes or attributes that
no longer exist. This way we can ignore the columns on load the same way
they're ignored on dump.
@eileencodes eileencodes merged commit ed6c184 into master Jan 31, 2018
@eileencodes eileencodes deleted the skip-omitted-attributes-on-load branch January 31, 2018 20:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant