d7154d4832
1 2 3 4 5 6 7 8 9 10 11
class CreateTags < ActiveRecord::Migration def change create_table :tags do |t| t.string :name t.references :post t.timestamps end add_index :tags, :post_id end end