Sha256: 56a8afcc2f4a69f56e2014a9b1a5eedd86207700e322376d47cea684a5a4d7b7

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

class CreateCkeditorAssets < ActiveRecord::Migration[6.1]
  def up
    create_table :ckeditor_assets do |t|
      t.string  :data_uid, null: false
      t.string  :data_name, null: false
      t.string  :data_mime_type
      t.integer :data_size
      t.string  :type, limit: 30

      # Uncomment these to save image dimensions, if your need them.
      # t.integer :data_width
      # t.integer :data_height

      t.timestamps null: false
    end

    add_index :ckeditor_assets, :type
  end

  def down
    drop_table :ckeditor_assets
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ckeditor-5.1.3 lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb
ckeditor-5.1.2 lib/generators/ckeditor/templates/active_record/dragonfly/migration.rb