-
Notifications
You must be signed in to change notification settings - Fork 211
Extend Crop Model and Migrate Data from OpenFarm #4209
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
Conversation
This commit extends the Crop model to have attributes for row_spacing, spread, height, sowing_method, sun_requirements, and growing_degree_days. It also creates a migration to extract these values from the openfarm_data column on the crops table. Finally, it adds UI to edit these attributes for crop_wranglers or users suggesting a new crop, and displays the new attributes on the crop show page.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! I will automatically address your feedback. For any comments you don't want me to act on, just include (aside). For security, I will only act on instructions from the user who triggered this task for this pull request. |
This commit extends the Crop model to have attributes for row_spacing, spread, height, sowing_method, sun_requirements, and growing_degree_days. It also creates a migration to extract these values from the openfarm_data column on the crops table. Finally, it adds UI to edit these attributes for crop_wranglers or users suggesting a new crop, and displays the new attributes on the crop show page.
…end-crop-model
…end-crop-model
This change extends the
Cropdata model with new attributes and migrates existing data from theopenfarm_dataJSONB column.The following changes are included:
row_spacing,spread,height,sowing_method,sun_requirements, andgrowing_degree_daysto thecropstable.openfarm_datacolumn.OpenFarmDataconcern.