models: remove creator_id from artists, notes, and pools.
Remove the creator_id field from artists, notes, and pools. The creator_id wasn't otherwise used and was inconsistent with the artist/note/pool history in some cases, especially for old artists.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class DropCreatorFromArtistsNotesPools < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
remove_index :pools, column: [:creator_id]
|
||||
remove_index :notes, column: [:creator_id, :post_id]
|
||||
|
||||
remove_column :artists, :creator_id, :integer, null: false
|
||||
remove_column :notes, :creator_id, :integer, null: false
|
||||
remove_column :pools, :creator_id, :integer, null: false
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user