Sha256: 42a9d65eadb214d1592c2367b1b79bafdea0c8cb7b98d8cbcb6cef2786683f5d
Contents?: true
Size: 843 Bytes
Versions: 3
Compression:
Stored size: 843 Bytes
Contents
class CreateRedactorAssets < ActiveRecord::Migration def change create_table :redactor_assets do |t| t.string :data_file_name, null: false t.string :data_content_type t.integer :data_file_size 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 # Uncomment it to add foreign key. gem 'foreigner' is required in your .Gemfile # add_foreign_key(:redactor_assets, :users, dependent: :delete) add_index "redactor_assets", ["assetable_type", "type", "assetable_id"], name: "idx_redactor_assetable_type" add_index "redactor_assets", ["assetable_type", "assetable_id"], name: "idx_redactor_assetable" end end
Version data entries
3 entries across 3 versions & 1 rubygems