Sha256: 3e676ef8a153e796b849352f39029563df7caaad2281fe780f163b795a55e3d2

Contents?: true

Size: 548 Bytes

Versions: 27

Compression:

Stored size: 548 Bytes

Contents

class CreateCkeditorAssets < ActiveRecord::Migration[4.2]
  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

27 entries across 27 versions & 1 rubygems

Version Path
thecore-1.5.10 db/migrate/20181119152033_create_ckeditor_assets.rb
thecore-1.5.9 db/migrate/20181119152033_create_ckeditor_assets.rb
thecore-1.5.8 db/migrate/20181119152033_create_ckeditor_assets.rb
thecore-1.5.7 db/migrate/20181119152033_create_ckeditor_assets.rb
thecore-1.5.6 db/migrate/20181119152033_create_ckeditor_assets.rb
thecore-1.5.5 db/migrate/20181119152033_create_ckeditor_assets.rb
thecore-1.5.4 db/migrate/20181119152033_create_ckeditor_assets.rb