remove trailing whitespaces ❤️

This commit is contained in:
Gosha Arinich
2013-02-25 19:42:20 +03:00
parent b50e0536c7
commit cafc75b238
383 changed files with 4220 additions and 2221 deletions

View File

@@ -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