-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Update column migration method to correctly set null: false #121
Conversation
* Update `MainAdapter#create_table` to execute `change_column_null` if the column is set to null: false
This is great. Thanks. The
While this works, it's confusing in that the I think the right solution to that is to combine the (I suppose I can merge this and we can fix it as a separate PR... ) |
I agree we should clean up the signature and combine info and options (and On Saturday, June 7, 2014, Tee Parham [email protected] wrote:
|
Update column migration method to correctly set null: false
Yep, let's clean up the |
Sounds good. I should be able to take a stab at it this week. On Saturday, June 7, 2014, Tee Parham [email protected] wrote:
|
Great - as always, check the latest master first since I may hack on it some too. |
Hey guys, still not sure how to use this. How would I use add_spatial_column to add a polygon column using srid 4326? |
@jeremieweldin this is an old, closed issue that applies to the internals of the adapter. Check the readme for version 2 or 3, depending on which version of rails you're using. There are examples for adding polygon columns there. |
Sorry about that... limited results from the google search. :/ I will look into the readme. Thanks! |
MainAdapter#create_table
to calladd_spatial_column
Edit: Here is more specific information (taken from a comment that is now deleted):
Previously running
would produce a table with the
geometry
column withoutnull: false
. With this update, including thenull: false
flag will now set the column to benull: false
as expected.