mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
remove trailing whitespaces ❤️
This commit is contained in:
@@ -10,25 +10,25 @@ class CreateForumThreadUser < ActiveRecord::Migration
|
||||
end
|
||||
|
||||
execute "DELETE FROM read_posts"
|
||||
|
||||
add_index :forum_thread_users, [:forum_thread_id, :user_id], unique: true
|
||||
|
||||
add_index :forum_thread_users, [:forum_thread_id, :user_id], unique: true
|
||||
|
||||
drop_table :stars
|
||||
drop_table :last_read_posts
|
||||
end
|
||||
|
||||
def down
|
||||
drop_table :forum_thread_users
|
||||
drop_table :forum_thread_users
|
||||
|
||||
create_table :stars, id: false do |t|
|
||||
t.integer :parent_id, null: false
|
||||
t.string :parent_type, limit: 50, null: false
|
||||
t.integer :user_id, null: true
|
||||
t.integer :user_id, null: true
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :stars, [:parent_id, :parent_type, :user_id]
|
||||
|
||||
add_index :stars, [:parent_id, :parent_type, :user_id]
|
||||
|
||||
create_table :last_read_posts do |t|
|
||||
t.integer :user_id, null: false
|
||||
t.integer :forum_thread_id, null: false
|
||||
|
||||
Reference in New Issue
Block a user