Sha256: 31082181ea75b095c765f114a715a99ae4b86c1eb8098b3026e9f3d71cdaab56

Contents?: true

Size: 520 Bytes

Versions: 21

Compression:

Stored size: 520 Bytes

Contents

class CreateLolitaUploadFiles < ActiveRecord::Migration
  def change
    create_table :lolita_files, :force=>true do |t|
      t.string  :asset
      t.string  :name
      t.string  :fileable_type
      t.integer :fileable_id
      t.string  :asset_extension, :limit=>12
      t.integer :asset_size
      t.timestamps
    end

    add_index :lolita_files, [:fileable_type,:fileable_id]
    add_index :lolita_files, :fileable_type
    add_index :lolita_files,:asset_size
    add_index :lolita_files, :created_at
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
lolita-file-upload-1.0.5 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-1.0.4 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-1.0.3 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-1.0.2 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-1.0.1 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-1.0.0 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.8.3 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.8.2 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.8.1 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.8.0 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.7.3 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.7.2 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.7.1 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.6.2 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.6.1 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.6.0 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.5.0 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.4.13 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.4.12 lib/generators/lolita/file_upload/templates/migration.rb
lolita-file-upload-0.4.11 lib/generators/lolita/file_upload/templates/migration.rb