Skip to content
Extraits de code Groupes Projets
Valider a8655e2e rédigé par Ruxton's avatar Ruxton
Parcourir les fichiers

Add tweet_id column to post

parent 3a0c9893
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
class AddTweetIdToPost < ActiveRecord::Migration
def change
add_column :posts, :tweet_id, :string
add_index :posts, :tweet_id
end
end
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
# It's strongly recommended to check this file into your version control system. # 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| create_table "account_deletions", :force => true do |t|
t.string "diaspora_handle" t.string "diaspora_handle"
...@@ -307,6 +307,7 @@ ActiveRecord::Schema.define(:version => 20130404211624) do ...@@ -307,6 +307,7 @@ ActiveRecord::Schema.define(:version => 20130404211624) do
t.string "frame_name" t.string "frame_name"
t.boolean "favorite", :default => false t.boolean "favorite", :default => false
t.string "facebook_id" t.string "facebook_id"
t.string "tweet_id"
end end
add_index "posts", ["author_id", "root_guid"], :name => "index_posts_on_author_id_and_root_guid", :unique => true 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 ...@@ -316,6 +317,7 @@ ActiveRecord::Schema.define(:version => 20130404211624) do
add_index "posts", ["root_guid"], :name => "index_posts_on_root_guid" 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", "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", ["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" add_index "posts", ["type", "pending", "id"], :name => "index_posts_on_type_and_pending_and_id"
create_table "profiles", :force => true do |t| create_table "profiles", :force => true do |t|
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter