-
Notifications
You must be signed in to change notification settings - Fork 15
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
1 parent
909bea9
commit 5fc78a8
Showing
3 changed files
with
3 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
class PictureHasPhotoFile < ActiveRecord::Migration | ||
def up | ||
def change | ||
add_column :pictures, :photo_file, :string | ||
end | ||
|
||
def down | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
class PicturesOnListsAreOrdered < ActiveRecord::Migration | ||
def up | ||
def change | ||
add_column :listed_pictures, :position, :integer | ||
end | ||
|
||
def down | ||
remove_column :listed_pictures, :position | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
class StoreFacebookId < ActiveRecord::Migration | ||
def up | ||
def change | ||
add_column :users, :facebook_id, :integer | ||
end | ||
|
||
def down | ||
remove_column :users, :facebook_id | ||
end | ||
end |