Sha256: d6ffe9667b667ea94b9352de3fd20b31cc5cc7fcc251f7de345a9ea5c3889029

Contents?: true

Size: 417 Bytes

Versions: 18

Compression:

Stored size: 417 Bytes

Contents

class AddSiteToGuts < ActiveRecord::Migration
  def change
    tables = [
      :guts_types,
      :guts_categories,
      :guts_contents,
      :guts_navigations,
      :guts_navigation_items,
      :guts_metafields,
      :guts_trackers,
      :guts_options,
      :guts_media
    ]
    
    tables.each do |table|
      change_table table do |t|
        t.references :site, index: true
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
guts-3.0.1 db/migrate/20160410200459_add_site_to_guts.rb
guts-3.0.0 db/migrate/20160410200459_add_site_to_guts.rb
guts-2.1.0 db/migrate/20160410200459_add_site_to_guts.rb
guts-2.0.2 db/migrate/20160410200459_add_site_to_guts.rb
guts-2.0.1 db/migrate/20160410200459_add_site_to_guts.rb
guts-2.0.0 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.4.0 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.3.6 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.3.5 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.3.4 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.3.3 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.3.2 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.3.1 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.3.0 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.2.2 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.2.1 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.2.0 db/migrate/20160410200459_add_site_to_guts.rb
guts-1.1.1 db/migrate/20160410200459_add_site_to_guts.rb