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

Refactor component position assignment #223

Merged
merged 2 commits into from
Jan 21, 2019
Merged

Conversation

a-barbieri
Copy link
Collaborator

Fixing one of the performance bottolenecks listed in issue #211. Now it's 40% faster!!

A database schema update is necessary:

  1. Create a migration from terminal
rails generate migration updateComponentPositionDefault
  1. Add the following line between def change ... end in db/migration/0000_update_component_position_default.rb (you probably don't have the 0000 sequence)
class UpdateComponentPositionDefault < ActiveRecord::Migration[5.2]
  def change
    change_column :binda_components, :position, :integer, default: 0
  end
end
  1. Run the migration in your terminal
rails db:migrate

@a-barbieri a-barbieri merged commit f57d5f6 into BindaCMS:master Jan 21, 2019
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.

1 participant