Sha256: fb20b800375c38d81bc4247c0e0851f1582554f2fa1b7ca1ae7e7fa69f373ffd
Contents?: true
Size: 371 Bytes
Versions: 35
Compression:
Stored size: 371 Bytes
Contents
class ConvertDiscountsSectionsToArrayOfStrings < ActiveRecord::Migration def up add_column :discounts, :sections, :text drop_table :discounts_sections end def down create_table(:discounts_sections) do |t| t.integer :discount_id, :null => false t.integer :section_id, :null => false end remove_column :discounts, :sections end end
Version data entries
35 entries across 35 versions & 1 rubygems