Skip to content

Commit

Permalink
use reversible migration syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeymicrophone committed Apr 10, 2012
1 parent 909bea9 commit 5fc78a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
5 changes: 1 addition & 4 deletions db/migrate/20120115192726_picture_has_photo_file.rb
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
6 changes: 1 addition & 5 deletions db/migrate/20120129191215_pictures_on_lists_are_ordered.rb
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
6 changes: 1 addition & 5 deletions db/migrate/20120129212446_store_facebook_id.rb
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

0 comments on commit 5fc78a8

Please sign in to comment.