mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
10 lines
263 B
Ruby
10 lines
263 B
Ruby
class AddUpdaterIdToArtists < ActiveRecord::Migration[5.1]
|
|
def self.up
|
|
execute "ALTER TABLE artists ADD COLUMN updater_id INTEGER REFERENCES users ON DELETE SET NULL"
|
|
end
|
|
|
|
def self.down
|
|
execute "ALTER TABLE artists DROP COLUMN updater_id"
|
|
end
|
|
end
|