retrospring/db/migrate/20141229133149_add_crop_values_to_users.rb
2020-04-19 18:10:31 +02:00

10 lines
372 B
Ruby

class AddCropValuesToUsers < ActiveRecord::Migration[4.2]
def change
# this is a ugly hack and will stay until I find a way to pass parameters
# to the paperclip Sidekiq worker. oh well.
add_column :users, :crop_x, :integer
add_column :users, :crop_y, :integer
add_column :users, :crop_w, :integer
add_column :users, :crop_h, :integer
end
end