Create Database and relations using raw SQL DDL

Hello! I started learning ruby and ruby on rails last week in order to use it on a university assignment. In the assignment report I need to provide sql DDL that created the database, and DDL of the queries I used in the assignment. Can I do something like that using Ruby on Rails ? I just started learning about ActiveRecords and migrations and I'm pretty confused.

Isn't what you want exactly the migrations? The requirement for the assignment sounds like the TA would just want to be able to set up the application and database.

Thanks a lot for your relpy. My question was not clear enough I suppose. Anyway the problem was that the assignment was asking for the sql ddl that created the database and I thought that I have to write raw sql in RoR in order to create the models.

Anyway I created the models using the RoR way and just got the mysqldump for the assignment. Thanks again for your time