Skip to content

Commit 155bca7

Browse files
committed
migracion para crear grupo
1 parent e97f40b commit 155bca7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
class CreaGrupo < ActiveRecord::Migration[7.2]
2+
def up
3+
Msip::Grupo.create({
4+
id: 101,
5+
nombre: "Solo ve sus casos",
6+
observaciones: "No puede ver ni editar casos de otros usuarios",
7+
fechacreacion: "2025-10-27",
8+
created_at: "2025-10-27",
9+
updated_at: "2025-10-27"
10+
})
11+
end
12+
def down
13+
g = Msip::Grupo.find(101)
14+
g.delete
15+
end
16+
end

0 commit comments

Comments
 (0)