Sha256: c814c79c95d927e29a7d2498cf68bf431b1d7e2700d836b8fbd46d37811844a4
Contents?: true
Size: 395 Bytes
Versions: 5
Compression:
Stored size: 395 Bytes
Contents
class CreateTaggings < ActiveRecord::Migration def self.up create_table :taggings do |t| t.integer :article_id t.integer :tag_id t.timestamps end add_index :taggings, :article_id add_index :taggings, :tag_id end def self.down remove_index :taggings, :article_id remove_index :taggings, :tag_id drop_table :taggings end end
Version data entries
5 entries across 5 versions & 1 rubygems