I am quite new to ROR and I am developing some basic role-based permission models for users.
However, I have to put some roles in the database by default, where do I insert related rows in my DB?
So far, I am doing it in a different migration, just make '!' Related items
However if I type Then, how do I get the default data in my database such as / Answer the same question here: Actually there is a file in the Rail which is DB / Beed. RB says, where you can add by default and then run "Rake DB: Beed" to load. rake db: migrate & amp; Amp; Rake DB: Test: Prepare , only my development pops up with DB data, while Test-DB only updates its schema and remains blank.
Comments
Post a Comment