mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
10 lines
168 B
Ruby
10 lines
168 B
Ruby
class AddIndexOnPostSource < ActiveRecord::Migration[5.1]
|
|
def self.up
|
|
add_index :posts, :source
|
|
end
|
|
|
|
def self.down
|
|
remove_index :posts, :source
|
|
end
|
|
end
|