Sha256: 7404b072a447258bc51ca380c971040f2d2d19cd85fb833b064995e62cb3c2db

Contents?: true

Size: 543 Bytes

Versions: 8

Compression:

Stored size: 543 Bytes

Contents

class CreateCkeditorAssets < ActiveRecord::Migration
  def self.up
    create_table :ckeditor_assets do |t|
      t.string  :data_file_name, null: false
      t.string  :data_content_type
      t.integer :data_file_size
      t.string  :data_fingerprint
      t.string  :type, limit: 30

      # Uncomment	it to save images dimensions, if your need it
      t.integer :width
      t.integer :height

      t.timestamps null: false
    end

    add_index :ckeditor_assets, :type
  end

  def self.down
    drop_table :ckeditor_assets
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
glebtv-ckeditor-4.11.1 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
ckeditor-4.3.0 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
glebtv-ckeditor-4.7.3.1 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
glebtv-ckeditor-4.7.3 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
ckeditor-4.2.4 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
ckeditor-4.2.3 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
ckeditor-4.2.2 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb
ckeditor-4.2.1 lib/generators/ckeditor/templates/active_record/paperclip/migration.rb