Sha256: 330f7df59220fdb3537c9de97f4aecbf301bf6de29a02f476ab9b5300d3d82af

Contents?: true

Size: 277 Bytes

Versions: 55

Compression:

Stored size: 277 Bytes

Contents

class CreateAssets < ActiveRecord::Migration[5.0]
  def change
    create_table :assets do |t|
      t.string :filename
      t.string :content_type
      t.integer :filesize
      t.text :description

      t.timestamps
    end

    add_index :assets, :content_type
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
udongo-7.9.0 db/migrate/20170225144523_create_assets.rb
udongo-7.8.1 db/migrate/20170225144523_create_assets.rb
udongo-7.8.0 db/migrate/20170225144523_create_assets.rb
udongo-7.7.2 db/migrate/20170225144523_create_assets.rb
udongo-7.7.1 db/migrate/20170225144523_create_assets.rb
udongo-7.7.0 db/migrate/20170225144523_create_assets.rb
udongo-7.6.2 db/migrate/20170225144523_create_assets.rb
udongo-7.6.1 db/migrate/20170225144523_create_assets.rb
udongo-7.6.0 db/migrate/20170225144523_create_assets.rb
udongo-7.5.1 db/migrate/20170225144523_create_assets.rb
udongo-7.5.0 db/migrate/20170225144523_create_assets.rb
udongo-7.4.2 db/migrate/20170225144523_create_assets.rb
udongo-7.4.1 db/migrate/20170225144523_create_assets.rb
udongo-7.4.0 db/migrate/20170225144523_create_assets.rb
udongo-7.3.5 db/migrate/20170225144523_create_assets.rb
udongo-7.3.4 db/migrate/20170225144523_create_assets.rb
udongo-7.3.3 db/migrate/20170225144523_create_assets.rb
udongo-7.3.2 db/migrate/20170225144523_create_assets.rb
udongo-7.3.1 db/migrate/20170225144523_create_assets.rb
udongo-7.2.1 db/migrate/20170225144523_create_assets.rb