Releases: a-barbieri/binda
Releases · a-barbieri/binda
Upgrade for Rails 5.1
In order to upgrade from previous version you need to run the following migrations.
Update repeater
rails g migration updateRepeater
Then update the migration just created with the following details
# db/migrate/XXXXXXX_update_repeater
class UpdateRepeater < ActiveRecord::Migration[5.0]
def change
remove_index :binda_field_groups, :repeater_id
remove_column :binda_field_groups, :repeater_id, :integer
add_column :binda_field_settings, :repeater_id, :integer
add_index :binda_field_settings, :repeater_id
add_column :binda_field_settings, :ancestry, :string
add_index :binda_field_settings, :ancestry
end
end
Update structure
rails g migration addColumnsToBindaStructures
Then update the migration just created with the following details
# db/migrate/XXXXXXX_add_columns_to_binda_structures
class AddColumnsToBindaStructures < ActiveRecord::Migration[5.0]
def change
add_column :binda_structures, :position, :integer
add_column :binda_structures, :has_categories, :boolean
end
end