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

Add DialogFieldAssociation table #41

Merged

Conversation

eclarizio
Copy link
Member

@eclarizio eclarizio commented Jul 13, 2017

This is in preparation for the targeted auto-refresh enhancement. We will need dialog fields to be associated to one another.

Here is the corresponding main repo PR

https://www.pivotaltracker.com/story/show/148013179

@gmcculloug I don't know if you have merge rights on this repo but I figured I'd tag you anyway.

def change
create_table :dialog_field_associations, :id => false do |t|
t.integer "dialog_field_trigger_id", :null => false
t.integer "dialog_field_respond_id", :null => false
Copy link
Member

Choose a reason for hiding this comment

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

  • Please use symbols for consistency.
  • Please remove the :null => false.
  • All tables must have an id for replication purposes, so remove the :id => false

@eclarizio eclarizio force-pushed the create_dialog_field_associations_table branch from d0fef44 to 90a1c9e Compare July 17, 2017 18:10
@eclarizio
Copy link
Member Author

@Fryguy Fixed, thanks.

@eclarizio
Copy link
Member Author

@Fryguy I'm assuming the Rubocop issues are ignorable considering all the rest of the migrations are written similarly to how I wrote them, but please let me know if I need to fix those issues to get this merged. Thanks.

@eclarizio eclarizio force-pushed the create_dialog_field_associations_table branch from 191373b to 9eb1b33 Compare July 24, 2017 15:36
@miq-bot
Copy link
Member

miq-bot commented Jul 24, 2017

Checked commit eclarizio@9eb1b33 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🍰

@Fryguy Fryguy merged commit 40e0612 into ManageIQ:master Jul 26, 2017
@Fryguy Fryguy added this to the Sprint 66 Ending Aug 7, 2017 milestone Jul 26, 2017
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.

4 participants