mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Support for Embeddable Comments via IFRAME
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
class MigrateWordCounts < ActiveRecord::Migration
|
||||
disable_ddl_transaction!
|
||||
|
||||
|
||||
def up
|
||||
post_ids = execute("SELECT id FROM posts WHERE word_count IS NULL LIMIT 500").map {|r| r['id'].to_i }
|
||||
while post_ids.length > 0
|
||||
@@ -30,4 +30,4 @@ class MigrateWordCounts < ActiveRecord::Migration
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
13
db/migrate/20131217174004_create_topic_embeds.rb
Normal file
13
db/migrate/20131217174004_create_topic_embeds.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateTopicEmbeds < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :topic_embeds, force: true do |t|
|
||||
t.integer :topic_id, null: false
|
||||
t.integer :post_id, null: false
|
||||
t.string :embed_url, null: false
|
||||
t.string :content_sha1, null: false, limit: 40
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :topic_embeds, :embed_url, unique: true
|
||||
end
|
||||
end
|
||||
5
db/migrate/20131219203905_add_cook_method_to_posts.rb
Normal file
5
db/migrate/20131219203905_add_cook_method_to_posts.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddCookMethodToPosts < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :posts, :cook_method, :integer, default: 1, null: false
|
||||
end
|
||||
end
|
||||
@@ -1,6 +1,6 @@
|
||||
class CreateTopTopics < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :top_topics do |t|
|
||||
create_table :top_topics, force: true do |t|
|
||||
t.belongs_to :topic
|
||||
|
||||
TopTopic.periods.each do |period|
|
||||
|
||||
Reference in New Issue
Block a user