Sha256: 431382316ae76d0e57755610b866b3bb0336f6ef91b6c3415ba79f02a5b6805c
Contents?: true
Size: 374 Bytes
Versions: 21
Compression:
Stored size: 374 Bytes
Contents
class CreateEmsChannelsNews < ActiveRecord::Migration def up # Create the association table create_table :ems_channels_news, :id => false do |t| t.integer :channel_id, :null => false t.integer :news_id, :null => false end # Add table index add_index :ems_channels_news, [:channel_id, :news_id], :unique => true end def down end end
Version data entries
21 entries across 21 versions & 1 rubygems