-
Notifications
You must be signed in to change notification settings - Fork 3
Create table to store EU entry and exit dates #894
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
Create table to store EU entry and exit dates #894
Conversation
app/models/eu_country_status.rb
Outdated
attr_accessible :eu_accession_year, :eu_exit_year | ||
belongs_to :geo_entity | ||
validates :geo_entity, :presence => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we fix the indentation here, please?
app/models/eu_country_status.rb
Outdated
attr_accessible :eu_accession_year, :eu_exit_year | ||
belongs_to :geo_entity | ||
validates :geo_entity, :presence => true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also validate that the geoentity needs to be a country(geo_entity_type)
@@ -0,0 +1,10 @@ | |||
class CreateEuCountryStatuses < ActiveRecord::Migration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not totally convinced by the name of this table, I would have gone with something like eu_country_dates
maybe? let's have a chat about it
Changes are done. Thanks |
|
||
private | ||
|
||
def is_country |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't seem to be used anywhere here, we might need to add a validate
line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops!! forgot to add it. Added it now
Thanks
looks good now! Tagging as don't merge to use it as the feature branch of all this task |
…import-task EU accession exit date import task
closing because superseded by this one #904 |
146