improvements to i18n, pgsql compat and validations#28
improvements to i18n, pgsql compat and validations#28sbeam wants to merge 16 commits intorefinery:masterfrom
Conversation
The from and to fields were changed to start_at and end_at for postgresql compatibility. The forms have been updated for the new fields. The locales still call the fields "From" and "To" but are now referenced with :start_at and :end_at. The two fields were also change from date to datetime fields. I have not included an upgrade migration for either database change.
* Fixed data types on migration. * Removed uniqueness constraint on Event. * Fixed a bad ordering on Event.
fixed conflict with events#show needing new column names Conflicts: app/views/refinery/calendar/events/show.html.erb
there is no reason events can't have the same titles
validates start and end date are present, and in the logical order. It would seem to be the definition of an event - something that occurrs over a given time. So, it's resonable to require times.
There was a problem hiding this comment.
so you're saying this now works with all versions of Refinery up until 3.0?
There was a problem hiding this comment.
well of course - I can't know that - but I'd hope so :) With the ~> operator it seems to me no need to lock it down so much since we don't know if 2.1 will break this, so no need to force people in the future to deal with this dependency. Just depends on how conservative you prefer to be I guess, totally up to you.
There was a problem hiding this comment.
I am wildly conservative ;-) I've been bitten way too many times in the past.
|
@sbeam OK So this PR effectively replaces #25 and maybe #27 is that right? /cc @Tranquility @jeremiahishere @luis-mendo @brenes? Sorry for the massive delay :( |
|
It only replaces #25. The translation commits only deal with static strings but do not allow the user to add multiple descriptions for different languages. |
|
@Tranquility thanks! |
|
+1 since the current master is broken on PostgreSQL (and supposedly SQLite, too). |
|
with #38 merged master should be compatible again with Postgre and SQLite |
this is some various stuff in one PR, but it's a worthy one IMO.
tests should pass