Sha256: 2d30cdc95360f516392a58727cae65ad4ecf1a464b69ff03c48ed8a310cce38e

Contents?: true

Size: 231 Bytes

Versions: 8

Compression:

Stored size: 231 Bytes

Contents

class AddCategoryIdToTables < ActiveRecord::Migration[5.1]
  def change
  	add_reference :events, :category, index: true
  	add_reference :offers, :category, index: true
  	add_reference :sections, :category, index: true
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dhatu-0.1.25 db/migrate/20171104163662_add_category_id_to_tables.rb
dhatu-0.1.24 db/migrate/20171104163662_add_category_id_to_tables.rb
dhatu-0.1.23 db/migrate/20171104163662_add_category_id_to_tables.rb
dhatu-0.1.22 db/migrate/20171104163662_add_category_id_to_tables.rb
dhatu-0.1.21 db/migrate/20171104163662_add_category_id_to_tables.rb
dhatu-0.1.20 db/migrate/20171104163662_add_category_id_to_tables.rb
dhatu-0.1.19 db/migrate/20171104163662_add_category_id_to_tables.rb
dhatu-0.1.18 db/migrate/20171104163662_add_category_id_to_tables.rb