Skip to content

Instantly share code, notes, and snippets.

@chad
Created April 5, 2014 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chad/9992922 to your computer and use it in GitHub Desktop.
Save chad/9992922 to your computer and use it in GitHub Desktop.
class TheMigrationClass < AR::Migration
class Conference < ActiveRecord::Base
has_many :attendances
end
class Attendance < ActiveRecord::Base
end
def change
# normal migration code
end
# all that stuff that didn't work before
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment