After merge "Bump paperclip from 5.2.1 to 6.1.0 #3905" as indicated in the release_notes columns type for attachments are changed from integer to bigint. For this reason we edit old migrations so that they continue to generate integer as before.
15 lines
412 B
Ruby
15 lines
412 B
Ruby
class CreateSiteCustomizationImages < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :site_customization_images do |t|
|
|
t.string :name, null: false
|
|
t.string :image_file_name
|
|
t.string :image_content_type
|
|
t.integer :image_file_size
|
|
t.datetime :image_updated_at
|
|
t.timestamps null: false
|
|
end
|
|
|
|
add_index :site_customization_images, :name, unique: true
|
|
end
|
|
end
|