this should work, and added a bit of logging
This commit is contained in:
parent
da1345502f
commit
fe4b886649
1 changed files with 2 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ class RemovePublicShareVisibilities < ActiveRecord::Migration
|
|||
AND #{table_name}.id < #{index};
|
||||
SQL
|
||||
|
||||
puts "deleted public share vis up to #{index} of #{type}"
|
||||
ActiveRecord::Base.connection.execute(sql)
|
||||
|
||||
index += 100
|
||||
|
|
@ -40,6 +41,6 @@ class RemovePublicShareVisibilities < ActiveRecord::Migration
|
|||
end
|
||||
|
||||
def self.down
|
||||
raise ActiveRecord::IrreversibleMigration
|
||||
#raise ActiveRecord::IrreversibleMigration
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue