Skip to content

Commit

Permalink
Merge pull request #16 from instedd/fix/remove-field-data
Browse files Browse the repository at this point in the history
Fixed date values issue
  • Loading branch information
Hugo David Farji authored Aug 8, 2019
2 parents e100070 + de5c642 commit 0eee486
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion app/interactors/anonymize_lab_record_file/remove_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def update_cell(row, col, content)

def date_columns
@date_columns ||=
context.lab_record.date.values.each_with_index.select { |c| c[0] }
context.lab_record.date.each_with_index.select { |c| c[0] }
end

def columns_to_offuscate
Expand Down
14 changes: 0 additions & 14 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

create_table "active_admin_comments", force: :cascade do |t|
t.string "namespace"
t.text "body"
t.string "resource_type"
t.bigint "resource_id"
t.string "author_type"
t.bigint "author_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id"
t.index ["namespace"], name: "index_active_admin_comments_on_namespace"
t.index ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id"
end

create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
Expand Down

0 comments on commit 0eee486

Please sign in to comment.