This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
v0.0.7
This is a major release and we are now at 0.0.7.
If you upgrade from 0.0.6 follow these steps:
Save on a .txt
file your website name and description. You will need to manually restore them later. Same goes for all fields which are set as strings
. They will be still available on the database but Binda won't recognised them anymore.
Upgrade Binda gem
bundle update
Now running bundle show binda
you should see version 0.0.7
Create first migration
rails g migration updateBinda
def change
add_reference :binda_settings, :structure, index: true
add_column :binda_structures, :instance_type, :string, null: false, default: 'component'
add_column :binda_texts, :type, :string
create_table :binda_choices_selects do |t|
t.belongs_to :choice, index: true
t.belongs_to :select, index: true
t.timestamps
end
remove_reference :binda_choices, :selectable, polymorphic: true
rename_table :binda_selects, :binda_selections
rename_table :binda_choices_selects, :binda_choices_selections
rename_column :binda_choices_selections, :select_id, :selection_id
rename_table :binda_settings, :binda_boards
end
Now run this migration
rails db:migrate
Setup new dashboard
Run this task. There is everything you need in it.
rails binda:upgrade_to_v007
Create second migration:
Now that everything is setup you can delete columns we are not going to use anymore.
rails g migration removeUselessColumns
def change
remove_column :binda_boards, :content, :text
remove_column :binda_boards, :is_true, :boolean, default: false
end
Run this migration as well
rails db:migrate
New features
- We now have boards!
Binda::Setting
has been dropped in favour ofBinda::Board
which is fully customizable from the CMS. - We have fully optimized Binda default helpers such as
get_components
- Add selections with select, radio and checkbox!
Strings
are now a model calledBinda::String
which means that if you upgrade you will lose all previous content related to any string field.