jdruk/mycroft-for-us

View on GitHub
app/db/migrate/20190416235633_add_visible_to_all_models.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddVisibleToAllModels < ActiveRecord::Migration[5.2]
  def change
      add_column :addresses, :visible, :boolean, default: true, null: false
      add_column :address_ranges, :visible, :boolean, default: true, null: false
      add_column :clients, :visible, :boolean, default: true, null: false
      add_column :concentrators, :visible, :boolean, default: true, null: false
      add_column :links, :visible, :boolean, default: true, null: false
      add_column :plans, :visible, :boolean, default: true, null: false
      add_column :users, :visible, :boolean, default: true, null: false
  end
end