Adding post details in preparation for the API importer code.

This commit is contained in:
James Edward Gray II
2013-10-15 09:21:30 -05:00
parent 20039860eb
commit 1aa9fc982d
6 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class CreatePostDetails < ActiveRecord::Migration
def change
create_table :post_details do |t|
t.belongs_to :post
t.string :key
t.string :value, size: 512
t.text :extra
t.timestamps
end
add_index :post_details, [:post_id, :key], unique: true
end
end