pic_vert_app/db/migrate/20120912064654_create_topics.rb
2013-01-08 23:28:47 +01:00

14 lines
262 B
Ruby

# -*- encoding : utf-8 -*-
class CreateTopics < ActiveRecord::Migration
def change
create_table :topics do |t|
t.string :title
t.text :description
t.references :admin
t.timestamps
end
add_index :topics, :admin_id
end
end