Join Kevin Skoglund for an in-depth discussion in this video Introducing migrations, part of Ruby on Rails 3 Essential Training.
Now that we've created a database and we have configured our Rails project…to connect to that database, we need to begin to flesh out the contents of the database,…the structure or the schema, and we're going to do that by writing Rails migrations.…So you're probably wondering what in the world is a migration?…Well, a migration is simply a set of database instructions.…It's going to be written in Ruby and they are going to allow us to migrate our…database from one state to another.…They are going to essentially describe the changes that should take place in our database.…So we create a table, we add a column, we drop a table, we change the name of a column.…
Those are all the kinds of instructions that we could give it and it's…going to contain both instructions for moving up to a new state and also moving…back down to the previous state.…So we might move up by creating a table; we would move back down by dropping the table.…Move up by adding a column or maybe even adding three columns; move back…
- Understanding MVC (Model View Controller ) architecture
- Routing browser requests through the framework
- Responding to requests with dynamic content
- Defining associations and database relationships
- Creating, reading, updating and deleting records
- Working with forms
- Validating form data
- Reviewing built-in security features
- Authenticating users and managing user access
- Debugging and error handling
Skill Level Beginner
1. What Is Ruby on Rails?
2. Installing Ruby on Rails on a Mac
3. Installing Ruby on Rails on a Windows Machine
4. Getting Started
5. Controllers, Views, and Dynamic Content
6. Databases and Migrations
7. Models, ActiveRecord, and ActiveRelation
9. Controllers and CRUD
10. Layouts, Partials, and View Helpers
12. Data Validation
13. User Authentication
14. Improving the Simple CMS
15. Debugging and Error Handling
16. Introducing More Advanced Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.