Sha256: 1161aa5c8b2b186da4942f7ec808db12414b6e79c1e34b28559fba5cef4a3035

Contents?: true

Size: 216 Bytes

Versions: 73

Compression:

Stored size: 216 Bytes

Contents

class PolymorphAsset < ActiveRecord::Migration[4.2]
  def change
    change_table(:scaptimony_assets) do |t|
      t.references :assetable, :polymorphic => true, :index => true
      t.remove :name
    end
  end
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
foreman_openscap-0.11.3 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.11.2 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.11.1 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.11.0 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.10.4 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.10.3 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.10.2 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.10.1 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.9.3 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.10.0 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.9.2 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.9.1 db/migrate/20150111085317_polymorph_asset.rb
foreman_openscap-0.9.0 db/migrate/20150111085317_polymorph_asset.rb