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.
14 lines
394 B
Ruby
14 lines
394 B
Ruby
class CreateImages < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :images do |t|
|
|
t.references :imageable, polymorphic: true, index: true
|
|
t.string :title, limit: 80
|
|
t.timestamps null: false
|
|
t.string :attachment_file_name
|
|
t.string :attachment_content_type
|
|
t.integer :attachment_file_size
|
|
t.datetime :attachment_updated_at
|
|
end
|
|
end
|
|
end
|