Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow running the notification task more than once
- Loading branch information
Kevin and aimee daniells
authored and
aimee daniells
committed
Dec 26, 2010
1 parent
48d363e
commit 74314f5
Showing
2 changed files
with
57 additions
and
40 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
db/migrate/20101226165500_add_last_emailed_and_tweeted_fields_to_user.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class AddLastEmailedAndTweetedFieldsToUser < ActiveRecord::Migration | ||
def self.up | ||
add_column :users, :last_emailed, :datetime | ||
add_column :users, :last_tweeted, :datetime | ||
end | ||
|
||
def self.down | ||
remove_column :users, :last_tweeted | ||
remove_column :users, :last_emailed | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters