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

Created a layer of abstraction for the valid type checking in schema dumper #9656

Closed
wants to merge 1 commit into from

Conversation

ranjaykrishna
Copy link
Contributor

Now, connection handles the check for valid types so that each database can handle the changes individually.

assert @conn.valid_type?(column.type)
end

def test_invalid_column
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the naming seems confusing to me: test_invalid_column but it still returns true. I think this test name would be a good palce to say why the sqlite3 adapter always return true.

@egilburg
Copy link
Contributor

should valid_type? be made into an API method on abstract adapter?

…dumper. Now, connection handles the check for valid types so that each database can handle the changes individually.
@rafaelfranca
Copy link
Member

Merged at c2e2031

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

Successfully merging this pull request may close these issues.

None yet

4 participants