10 Aug '17, 7pm

@preinheimer Rails migrations feature ‘down’ aka rollbacks, which were then copied everywhere https://t.co/N9hAyv0IND

Migrations are stored as files in the db/migrate directory, one for each migration class. The name of the file is of the form YYYYMMDDHHMMSS_create_products.rb , that is to say a UTC timestamp identifying the migration followed by an underscore followed by the name of the migration. The name of the migration class (CamelCased version) should match the latter part of the file name. For example 20080906120000_create_products.rb should define class CreateProducts and 20080906120001_add_details_to_products.rb should define AddDetailsToProducts . Rails uses this timestamp to determine which migration should be run and in what order, so if you're copying a migration from another application or generate a file yourself, be aware of its position in the order.

Full article: http://edgeguides.rubyonrails.org/active_record_migration...

Tweets

Ruby on Rails news, rails tutorials, learning rails, rails guides, certification.

Ruby on Rails news, rails tutorials, learning r...

hype.codes 17 Aug '17, 8am

A. Davydov: It's vital not to stop and find conceptually new solutions An Open Source enthusiast and one of the core devel...

Ruby Developer - Ruby on Rails Software Enginee...

technojobs.co.uk 11 Aug '17, 7pm

Mid or Senior Level Ruby Developer / Ruby on Rails Software Engineer with good design, development, problem solving, docum...

Advanced Active Record

rubyflow.com 12 Aug '17, 6pm

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

New Job Alert: Continue adding feature on Ruby ...

freelancer.com 08 Aug '17, 10am

I will add features to your app Relevant Skills and Experience I have 8 years experience in ruby on rails developmemt, jus...