Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

adds "read only" flag to fields settings #190

Merged
merged 1 commit into from
Apr 12, 2018

Conversation

Marchino
Copy link
Contributor

This pull request adds a read only flag so that admins can decide if a specific field_setting will be editable or not. It works with every kind of Field Type.

@a-barbieri a-barbieri merged commit 15f6a8b into BindaCMS:master Apr 12, 2018
@a-barbieri
Copy link
Collaborator

a-barbieri commented Apr 12, 2018

Is there any migration that needs to be done in order to upgrade from prev versions?

@Marchino
Copy link
Contributor Author

Yes! you need to add this migration to your application:

class AddReadOnlyToFieldSettings < ActiveRecord::Migration[5.1]
  def change
    add_column :binda_field_settings, :read_only, :boolean, default: false
  end
end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants