-
I'm trying to seed data directly inside a migration, but I'm unable to get a DatabaseConnection handle to be able to do it. let db = manager.get_connection();
let board = board::ActiveModel {
name: Set("Test Board".to_owned()),
..Default::default()
};
board.save(db).await?; I tried something like this, but I'm getting: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @Drakota, thanks for reporting this. I think we can relax the constraint and make it work. Please check |
Beta Was this translation helpful? Give feedback.
-
That looks great! Thank you for your work on sea-orm. |
Beta Was this translation helpful? Give feedback.
Hey @Drakota, thanks for reporting this. I think we can relax the constraint and make it work.
Please check