Skip to content

Commit

Permalink
Rename applies_to_exp to visibility_expression
Browse files Browse the repository at this point in the history
applies_to_exp is unused and we can use it for storing
MiqExpression which can say whether the button will be
displayed or not.
  • Loading branch information
lpichler committed Jul 13, 2017
1 parent 75a9709 commit 679046a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RenameAppliesToVisibilityExpression < ActiveRecord::Migration[5.0]
def change
rename_column :custom_buttons, :applies_to_exp, :visibility_expression
end
end
2 changes: 1 addition & 1 deletion db/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ custom_buttons:
- guid
- description
- applies_to_class
- applies_to_exp
- visibility_expression
- options
- userid
- wait_for_complete
Expand Down

0 comments on commit 679046a

Please sign in to comment.