Skip to content

Commit

Permalink
migra
Browse files Browse the repository at this point in the history
  • Loading branch information
vtamara committed Feb 17, 2024
1 parent e44f55e commit 0954931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# require "action_mailbox/engine"
# require "action_text/engine"
require "action_view/railtie"
# require "action_cable/engine"
require "action_cable/engine"
require "rails/test_unit/railtie"


Expand Down
3 changes: 2 additions & 1 deletion db/migrate/20230330020817_activa_uniciada_ids.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
class ActivaUniciadaIds < ActiveRecord::Migration[7.0]
def up
execute <<-SQL
UPDATE msip_persona SET tdocumento_id=11 WHERE tdocumento_id IS NULL;
UPDATE msip_persona SET tdocumento_id=11, numerodocumento=id
WHERE tdocumento_id IS NULL;
ALTER TABLE msip_persona ADD CONSTRAINT
tipoynumdoc_unicos UNIQUE (tdocumento_id, numerodocumento);
SQL
Expand Down

0 comments on commit 0954931

Please sign in to comment.