Add tweet_id column to post
This commit is contained in:
parent
3a0c9893e7
commit
a8655e2e8d
2 changed files with 9 additions and 1 deletions
6
db/migrate/20130429073928_add_tweet_id_to_post.rb
Normal file
6
db/migrate/20130429073928_add_tweet_id_to_post.rb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
class AddTweetIdToPost < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :posts, :tweet_id, :string
|
||||
add_index :posts, :tweet_id
|
||||
end
|
||||
end
|
||||
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Reference in a new issue