This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
daqing
committed
Jun 2, 2011
1 parent
f893444
commit 2b9f41b
Showing
11 changed files
with
96 additions
and
83 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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,17 @@ | ||
class UpdateActivity < ActiveRecord::Migration | ||
def self.up | ||
change_table :activities do |t| | ||
t.remove :target_type, :related_id, :related_type | ||
t.integer :project_id | ||
end | ||
end | ||
|
||
def self.down | ||
change_table :activities do |t| | ||
t.string :target_type | ||
t.string :related_type | ||
t.integer :related_id | ||
t.remove :project_id | ||
end | ||
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
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 |
---|---|---|
@@ -1,30 +1,26 @@ | ||
# == Schema Information | ||
# Schema version: 20110514032858 | ||
# Schema version: 20110602082645 | ||
# | ||
# Table name: activities | ||
# | ||
# id :integer not null, primary key | ||
# user_id :integer | ||
# event_name :string(255) | ||
# target_type :string(255) | ||
# target_id :integer | ||
# data :text | ||
# created_at :datetime | ||
# updated_at :datetime | ||
# related_id :integer | ||
# related_type :string(255) | ||
# id :integer not null, primary key | ||
# user_id :integer | ||
# event_name :string(255) | ||
# target_id :integer | ||
# data :text | ||
# created_at :datetime | ||
# updated_at :datetime | ||
# project_id :integer | ||
# | ||
|
||
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html | ||
|
||
one: | ||
user: daqing | ||
event_name: new_project | ||
target_type: Project | ||
target_id: 1 | ||
|
||
two: | ||
user: daqing | ||
event_name: new_issue | ||
target_type: Issue | ||
target_id: 1 |
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