mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
11 lines
244 B
Ruby
11 lines
244 B
Ruby
class AddApprovedByToPosts < ActiveRecord::Migration[5.1]
|
|
def self.up
|
|
add_column :posts, :approved_by, :integer
|
|
add_foreign_key :posts, :approved_by, :users, :id
|
|
end
|
|
|
|
def self.down
|
|
remove_column :posts, :approved_by
|
|
end
|
|
end
|