2023-10-20 01:37:34 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-05-17 21:14:40 +02:00
|
|
|
class RenameCropFields < ActiveRecord::Migration[5.2]
|
2020-05-21 22:32:36 +02:00
|
|
|
def change
|
2020-05-17 21:14:40 +02:00
|
|
|
rename_column :users, :crop_h, :profile_picture_h
|
|
|
|
rename_column :users, :crop_w, :profile_picture_w
|
|
|
|
rename_column :users, :crop_x, :profile_picture_x
|
|
|
|
rename_column :users, :crop_y, :profile_picture_y
|
|
|
|
rename_column :users, :crop_h_h, :profile_header_h
|
|
|
|
rename_column :users, :crop_h_w, :profile_header_w
|
|
|
|
rename_column :users, :crop_h_x, :profile_header_x
|
|
|
|
rename_column :users, :crop_h_y, :profile_header_y
|
|
|
|
end
|
|
|
|
end
|