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