mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
10 lines
242 B
Ruby
10 lines
242 B
Ruby
class PostsAddIsPending < ActiveRecord::Migration[5.1]
|
|
def self.up
|
|
execute "alter table posts add column is_pending boolean not null default false"
|
|
end
|
|
|
|
def self.down
|
|
execute "alter table posts drop column is_pending"
|
|
end
|
|
end
|