blob: cf95b1c3d062dd9c91cf9f7cebae3772f3c302f0 (
plain) (
blame)
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
|