13 lines
278 B
Ruby
13 lines
278 B
Ruby
![]() |
class DropCollectionItemUserFk < ActiveRecord::Migration
|
||
|
tag :predeploy
|
||
|
|
||
|
def self.up
|
||
|
# the user can be on another shard for group collections
|
||
|
remove_foreign_key :collection_items, :users
|
||
|
end
|
||
|
|
||
|
def self.down
|
||
|
add_foreign_key :collection_items, :users
|
||
|
end
|
||
|
end
|