mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
10 lines
234 B
Ruby
10 lines
234 B
Ruby
class PostSourceDefault < ActiveRecord::Migration[5.1]
|
|
def self.up
|
|
execute "ALTER TABLE posts ALTER COLUMN source SET DEFAULT ''"
|
|
end
|
|
|
|
def self.down
|
|
execute "ALTER TABLE posts ALTER COLUMN source DROP DEFAULT"
|
|
end
|
|
end
|