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