Sha256: 1ecf5db165e24afbf0ec4271cb536f3ebf464bc73806acd774a9ac929b8dce22
Contents?: true
Size: 387 Bytes
Versions: 21
Compression:
Stored size: 387 Bytes
Contents
class CreateEmsChannelsReports < ActiveRecord::Migration def up # Create the association table create_table :ems_channels_reports, :id => false do |t| t.integer :channel_id, :null => false t.integer :report_id, :null => false end # Add table index add_index :ems_channels_reports, [:channel_id, :report_id], :unique => true end def down end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
ems-0.0.2 | db/migrate/20120403161933_create_ems_channels_reports.rb |