Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding documents back in to see why this would be breaking #1384

Merged
merged 1 commit into from
Jun 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/permissible_value.rb
Expand Up @@ -19,6 +19,7 @@
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.~

class PermissibleValue < ApplicationRecord
belongs_to :parent, :class_name => 'PermissibleValue'

scope :available, -> {
where(is_available: true)
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/migrate_ids_to_bigint.rake
Expand Up @@ -26,7 +26,7 @@ task :migrate_ids_to_bigint => :environment do
foreign_keys = Hash.new{ |h, k| h[k] = [] }
ActiveRecord::Base.transaction do

db_models.except("documents").each do |table_name, model|
db_models.each do |table_name, model|
fks = ActiveRecord::Base.connection.foreign_keys(table_name)
foreign_keys[table_name] = fks if fks.present?
references[table_name] = get_references(model) unless get_references(model).empty?
Expand Down