Sha256: b3cb8a6b1fd20de05530b94d126b1ae12de0d34c17dbb14601d927f253e71014

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

class CreateGemTestMessages < ActiveRecord::Migration[5.0]
  def change
    create_file_blobs_table :gem_test_messages, blob_limit: 64.kilobytes do |t|
      # Test the options.
      t.file_blob :attachment, null: true, mime_type_limit: 16,
          original_name_limit: 64

      t.file_blob :signature, null: true

      # Test that the block is invoked with the correct argument.
      t.string :subject, null: false, limit: 64
      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
file_blobs_rails-0.2.3 test/fixtures/004_create_gem_test_messages.rb
file_blobs_rails-0.2.2 test/fixtures/004_create_gem_test_messages.rb
file_blobs_rails-0.2.1 test/fixtures/004_create_gem_test_messages.rb
file_blobs_rails-0.2.0 test/fixtures/004_create_gem_test_messages.rb
file_blobs_rails-0.1.0 test/fixtures/004_create_gem_test_messages.rb