Sha256: 0994aab64de59983248a60f4d625bee07e11596393a380b52d92be619e640bdf

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

class CreateFiles < ActiveRecord::Migration
  class << self
    
    def up
      create_table :lolita_files, :force=>true do |f|
        f.string :asset
        f.string :name
        f.string  :fileable_type
        f.string  :fileable_id
        f.integer :asset_size
        f.string  :asset_extension
        f.timestamps
      end
    end

    def down

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lolita-file-upload-0.2.1 test_orm/db/migrate/02_create_files.rb
lolita-file-upload-0.2.0 test_orm/db/migrate/02_create_files.rb