Sha256: d5fa0d440b1d894bfa302a759c65110f0d349e006e2ab25fe2deb69b5bfadea8

Contents?: true

Size: 393 Bytes

Versions: 8

Compression:

Stored size: 393 Bytes

Contents

class CreateFileUpload < ActiveRecord::Migration

  def change
    create_table(:file_uploads) do |t|
      t.text :file, null: false
      t.text :file_name
      t.text :content_type
      t.integer :file_size, null: false, default: 0
      t.timestamps
    end

    add_index :file_uploads, :file
    add_index :file_uploads, :content_type
    add_index :file_uploads, :file_size
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/file_uploads/templates/migration.rb
coalla-cms-0.7.0.0 lib/generators/coalla/cms/file_uploads/templates/migration.rb
coalla-cms-0.5.2.4 lib/generators/coalla/cms/file_uploads/templates/migration.rb
coalla-cms-0.6.1.1 lib/generators/coalla/cms/file_uploads/templates/migration.rb
coalla-cms-0.6.0.9 lib/generators/coalla/cms/file_uploads/templates/migration.rb
coalla-cms-0.4.4.3 lib/generators/coalla/cms/file_uploads/templates/migration.rb
coalla-cms-0.5.1.9 lib/generators/coalla/cms/file_uploads/templates/migration.rb
coalla-cms-0.5.1.8 lib/generators/coalla/cms/file_uploads/templates/migration.rb