Sha256: d08d5d393a9e4acb210e2b8192719a0261451a00d53733b42cf44061137e7246

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

class Create<%= file_name.classify.pluralize %> < ActiveRecord::Migration[5.0]
  def change
    create_table :<%= file_name.tableize %> do |t|
      t.file_blob :<%= options[:attr_name] %>, null: <%= options[:allow_nil] %>, mime_type_limit: 64, file_name_limit: 256
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
file_blobs_rails-0.2.3 lib/file_blobs_rails/generators/templates/002_create_blob_owners.rb.erb
file_blobs_rails-0.2.2 lib/file_blobs_rails/generators/templates/002_create_blob_owners.rb.erb
file_blobs_rails-0.2.1 lib/file_blobs_rails/generators/templates/002_create_blob_owners.rb.erb
file_blobs_rails-0.2.0 lib/file_blobs_rails/generators/templates/002_create_blob_owners.rb.erb
file_blobs_rails-0.1.0 lib/file_blobs_rails/generators/templates/002_create_blob_owners.rb.erb