mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 01:47:48 +00:00
14 lines
364 B
Ruby
14 lines
364 B
Ruby
class AddSampleColumns < ActiveRecord::Migration[5.1]
|
|
def self.up
|
|
add_column :posts, :sample_width, :integer
|
|
add_column :posts, :sample_height, :integer
|
|
add_column :users, :show_samples, :boolean
|
|
end
|
|
|
|
def self.down
|
|
remove_column :posts, :sample_width
|
|
remove_column :posts, :sample_height
|
|
remove_column :users, :show_samples
|
|
end
|
|
end
|