Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

Commit 94ae94e

Browse files
committed
Merge pull request #875 from YaleSTC/853_migrations
Resolves #853 by tweaking migration
2 parents aa449c9 + 273d5e4 commit 94ae94e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

db/migrate/20140611142209_move_admin_notes_to_comments.rb

-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ def self.up
77
add_column :active_admin_comments, :namespace, :string
88
add_index :active_admin_comments, [:namespace]
99
add_index :active_admin_comments, [:author_type, :author_id]
10-
11-
# Update all the existing comments to the default namespace
12-
say "Updating any existing comments to the #{ActiveAdmin.application.default_namespace} namespace."
13-
comments_table_name = ActiveRecord::Migrator.proper_table_name("active_admin_comments")
14-
execute "UPDATE #{comments_table_name} SET namespace='#{ActiveAdmin.application.default_namespace}'"
1510
end
1611

1712
def self.down

0 commit comments

Comments
 (0)