Rails Migrations and Schemas

  • A schema.rb file is typically a ruby script containing a call to the ActiveRecord::Schema.define method.
  • A rails migration is a ruby class which inherits from ActiveRecord::Migration and contains a method called up

The useful fact that I realized only after doing some ultimately unnecessary work today is that because the schema file contains a method call, it’s actually easier to extract the information from it than with a migration (which needs SQLEditor to figure out a class name and then call the up method)

Hopefully this new work will appear soon in SQLEditor

This entry was posted in Politics, Writing Software and tagged , , . Bookmark the permalink.

Leave a Reply