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