01 Jun '14, 11am

p51 AddXXXToYYYのルールは説明しなくても良い?対象読者にRails触ってない人も含めているから、触れたほうが良いような気がする

You can think of each migration as being a new 'version' of the database. A schema starts off with nothing in it, and each migration modifies it to add or remove tables, columns, or entries. Active Record knows how to update your schema along this timeline, bringing it from whatever point it is in the history to the latest version. Active Record will also update your db/schema.rb file to match the up-to-date structure of your database.

Full article: http://guides.rubyonrails.org/migrations.html#creating-a-...

Tweets

My relational database mind is rusty. Perhaps I...

guides.rubyonrails.org 31 May '14, 11am

is a connection between two Active Record models. Associations are implemented using macro-style calls, so that you can de...

Workflows for Writing Migrations With Rollbacks...

robots.thoughtbot.com 29 May '14, 5pm

Workflows for Writing Migrations With Rollbacks in Mind Simon Taranto May 29, 2014 rails rake thoughtbot’s dotfiles includ...