mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Adding post details in preparation for the API importer code.
This commit is contained in:
14
db/migrate/20131015131652_create_post_details.rb
Normal file
14
db/migrate/20131015131652_create_post_details.rb
Normal 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
|
||||
Reference in New Issue
Block a user