Skip to content

Instantly share code, notes, and snippets.

@therealadam
Created September 25, 2008 05:07
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 therealadam/12765 to your computer and use it in GitHub Desktop.
Save therealadam/12765 to your computer and use it in GitHub Desktop.
class Issue < ActiveRecord::Base
after_create :send_notification
def send_notification; end
end
class SomeMigration < ActiveRecord::Migration
def self.up
# Do stuff with Issue
end
def self.down
# Do stuff with Issue
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment