Sha256: d09dd2f31bc3e7a3864812f907d7d7cfad0d3c6ce35233a62d3e78d21b72f44d
Contents?: true
Size: 797 Bytes
Versions: 10
Compression:
Stored size: 797 Bytes
Contents
class CreateCkeditorAssets < ActiveRecord::Migration def self.up create_table :ckeditor_assets do |t| t.string :data_id, :null => false t.string :data_filename, :null => false t.integer :data_size t.string :data_content_type t.integer :assetable_id t.string :assetable_type, :limit => 30 t.string :type, :limit => 30 # Uncomment it to save images dimensions, if your need it t.integer :width t.integer :height t.timestamps end add_index "ckeditor_assets", ["assetable_type", "type", "assetable_id"], :name => "idx_ckeditor_assetable_type" add_index "ckeditor_assets", ["assetable_type", "assetable_id"], :name => "idx_ckeditor_assetable" end def self.down drop_table :ckeditor_assets end end
Version data entries
10 entries across 10 versions & 4 rubygems