Sha256: 33b2ec19fdbb6a447dd687688687e2212b3b72903a5ccc1a626e8653cc08721b
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true class CreateCkeditorAssets < ActiveRecord::Migration[6.1] def up create_table :ckeditor_assets do |t| t.integer :data_size t.string :type, limit: 30 # Shrine column t.text :attachment_data # 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/shrine/migration.rb |
ckeditor-5.1.2 | lib/generators/ckeditor/templates/active_record/shrine/migration.rb |