Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user = User.create(
- username: "test",
- user_group_id: "AAA", # This data type is int in database
- password: "test",
- status: 1,
- date_added: DateTime.now.strftime("%Y-%m-%d %H:%M:%S"),
- date_updated: DateTime.now.strftime("%Y-%m-%d %H:%M:%S")
- )
Add Comment
Please, Sign In to add comment