26 Sep '13, 9am

ほんとだ、ちゃんと reset_column_information について書いてあった > Active Record Migrations — Ruby on Rails Guides -

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#using-model...

Tweets

How did I not know about the content_for and di...

api.rubyonrails.org 26 Sep '13, 12pm

You can also pass an array of objects which this method will loop through and yield the current object to the supplied blo...

server side #rails validations

guides.rubyonrails.org 26 Sep '13, 11am

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and m...

migration の change の一部だけ up と down の処理を分けたいときは ...

guides.rubyonrails.org 02 Oct '13, 1am

class SerializeProductListMigration < ActiveRecord::Migration def change add_column :categories, :product_list reversible ...

@dngoo Hmm. You could use a custom constraint o...

guides.rubyonrails.org 26 Sep '13, 3am

Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Association...

@kerrizor I don't think there's anything in min...

api.rubyonrails.org 29 Sep '13, 6pm

Test numeric difference between the return value of an expression as a result of what is evaluated in the yielded block. a...

#Ruby on #Rails: Deploy

rubyonrails.org 05 Oct '13, 12am

The easiest deployment setup for Rails is Phusion Passenger aka mod_rails. It's a module for nginx and Apache that automat...

LINE lets Record Videos with SNAP MOVIE

superadrianme.com 27 Sep '13, 5am

Snap Movie lets you record a four to 10 second video and share it with your friends. You have a choice of nine different b...

Fast tests in Ruby on Rails

rubyflow.com 01 Oct '13, 3pm

Fast tests in Ruby on Rails Posted by manualwise on October 01, 2013 — 0 comments Developers need to be able to run tests ...

@clemensk yep, race conditions can happen becau...

api.rubyonrails.org 01 Oct '13, 2pm

Using this validation method in conjunction with ActiveRecord::Validations#save does not guarantee the absence of duplicat...

@BMorearty pretty sure it's not true. Also, cop...

rubini.us 30 Sep '13, 11pm

We, Rubinius, absolutely reserve the right to change any part of the underlying compiled file mechanism. Since we are publ...

@mperham If you're using Active Support, it's a...

api.rubyonrails.org 03 Oct '13, 7pm

A duck-type assistant method. For example, Active Support extends Date to define an acts_like_date? method, and extends Ti...