Skip to content

Commit 3534c0a

Browse files
rootNicolas Rodriguez
root
authored and
Nicolas Rodriguez
committed
Fix first migration
1 parent e7941e2 commit 3534c0a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

Diff for: db/migrate/20130910195931_add_columns_to_repository_git_notification.rb

+2-7
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
class AddColumnsToRepositoryGitNotification < ActiveRecord::Migration
22

33
def self.up
4-
unless RepositoryGitNotification.column_names.include? 'prefix'
5-
add_column :repository_git_notifications, :prefix, :string
6-
end
7-
8-
unless RepositoryGitNotification.column_names.include? 'sender_address'
9-
add_column :repository_git_notifications, :sender_address, :string
10-
end
4+
add_column :repository_git_notifications, :prefix, :string
5+
add_column :repository_git_notifications, :sender_address, :string
116
end
127

138
def self.down

0 commit comments

Comments
 (0)