Sha256: 7b973c868199a722e442b08c93b4d83668f5bfaf5e55c4b854484d02d4c65358

Contents?: true

Size: 236 Bytes

Versions: 11

Compression:

Stored size: 236 Bytes

Contents

class CreateUploads < ActiveRecord::Migration
  def change
    create_table :uploads do |t|
      t.jsonb :file, default: {}
      t.string :record_type
      t.string :record_attribute

      t.timestamps null: false
    end
  end
end

Version data entries

11 entries across 6 versions & 1 rubygems

Version Path
attachs-4.0.0.5 test/dummy/db/migrate/20161031135453_create_uploads.rb
attachs-4.0.0.5 lib/generators/attachs/upload/templates/migration.rb
attachs-4.0.0.4 lib/generators/attachs/upload/templates/migration.rb
attachs-4.0.0.4 test/dummy/db/migrate/20161031135453_create_uploads.rb
attachs-4.0.0.3 lib/generators/attachs/upload/templates/migration.rb
attachs-4.0.0.3 test/dummy/db/migrate/20161031135453_create_uploads.rb
attachs-4.0.0.2 test/dummy/db/migrate/20161031135453_create_uploads.rb
attachs-4.0.0.2 lib/generators/attachs/upload/templates/migration.rb
attachs-4.0.0.1 lib/generators/attachs/upload/templates/migration.rb
attachs-4.0.0.1 test/dummy/db/migrate/20161031135453_create_uploads.rb
attachs-4.0.0.0 test/dummy/db/migrate/20161031135453_create_uploads.rb