From a8655e2e8dce5a0433ddabf4c164316d1e70c821 Mon Sep 17 00:00:00 2001 From: Ruxton <ruxton@thefrontiergroup.com.au> Date: Mon, 29 Apr 2013 21:18:24 +0800 Subject: [PATCH] Add tweet_id column to post --- db/migrate/20130429073928_add_tweet_id_to_post.rb | 6 ++++++ db/schema.rb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20130429073928_add_tweet_id_to_post.rb diff --git a/db/migrate/20130429073928_add_tweet_id_to_post.rb b/db/migrate/20130429073928_add_tweet_id_to_post.rb new file mode 100644 index 0000000000..3d42da98c2 --- /dev/null +++ b/db/migrate/20130429073928_add_tweet_id_to_post.rb @@ -0,0 +1,6 @@ +class AddTweetIdToPost < ActiveRecord::Migration + def change + add_column :posts, :tweet_id, :string + add_index :posts, :tweet_id + end +end diff --git a/db/schema.rb b/db/schema.rb index 79e696a656..22f5dda6d3 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130404211624) do +ActiveRecord::Schema.define(:version => 20130429073928) do create_table "account_deletions", :force => true do |t| t.string "diaspora_handle" @@ -307,6 +307,7 @@ ActiveRecord::Schema.define(:version => 20130404211624) do t.string "frame_name" t.boolean "favorite", :default => false t.string "facebook_id" + t.string "tweet_id" end add_index "posts", ["author_id", "root_guid"], :name => "index_posts_on_author_id_and_root_guid", :unique => true @@ -316,6 +317,7 @@ ActiveRecord::Schema.define(:version => 20130404211624) do add_index "posts", ["root_guid"], :name => "index_posts_on_root_guid" add_index "posts", ["status_message_guid", "pending"], :name => "index_posts_on_status_message_guid_and_pending" add_index "posts", ["status_message_guid"], :name => "index_posts_on_status_message_guid" + add_index "posts", ["tweet_id"], :name => "index_posts_on_tweet_id" add_index "posts", ["type", "pending", "id"], :name => "index_posts_on_type_and_pending_and_id" create_table "profiles", :force => true do |t| -- GitLab