diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-16 11:46:25 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-16 11:46:25 +0100 |
commit | 8767a98fbb013bed01443721c17eadeba70c3421 (patch) | |
tree | 9f4fe9eb054ada8d9bbea5cb108fee58a792c6f3 /db | |
parent | a9db42a956fb045131b06ba434a74189c96ad651 (diff) |
Adding CSS for form errors, adding missing indices
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160316103650_add_missing_indices.rb | 10 | ||||
-rw-r--r-- | db/schema.rb | 9 |
2 files changed, 18 insertions, 1 deletions
diff --git a/db/migrate/20160316103650_add_missing_indices.rb b/db/migrate/20160316103650_add_missing_indices.rb new file mode 100644 index 000000000..190241833 --- /dev/null +++ b/db/migrate/20160316103650_add_missing_indices.rb @@ -0,0 +1,10 @@ +class AddMissingIndices < ActiveRecord::Migration + def change + add_index :users, :account_id + add_index :statuses, :account_id + add_index :statuses, :in_reply_to_id + add_index :statuses, :reblog_of_id + add_index :stream_entries, :account_id + add_index :stream_entries, [:activity_id, :activity_type] + end +end diff --git a/db/schema.rb b/db/schema.rb index a5e87024a..250b69f6d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20160314164231) do +ActiveRecord::Schema.define(version: 20160316103650) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -125,6 +125,9 @@ ActiveRecord::Schema.define(version: 20160314164231) do t.string "url" end + add_index "statuses", ["account_id"], name: "index_statuses_on_account_id", using: :btree + add_index "statuses", ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id", using: :btree + add_index "statuses", ["reblog_of_id"], name: "index_statuses_on_reblog_of_id", using: :btree add_index "statuses", ["uri"], name: "index_statuses_on_uri", unique: true, using: :btree create_table "stream_entries", force: :cascade do |t| @@ -135,6 +138,9 @@ ActiveRecord::Schema.define(version: 20160314164231) do t.datetime "updated_at", null: false end + add_index "stream_entries", ["account_id"], name: "index_stream_entries_on_account_id", using: :btree + add_index "stream_entries", ["activity_id", "activity_type"], name: "index_stream_entries_on_activity_id_and_activity_type", using: :btree + create_table "users", force: :cascade do |t| t.string "email", default: "", null: false t.integer "account_id", null: false @@ -151,6 +157,7 @@ ActiveRecord::Schema.define(version: 20160314164231) do t.inet "last_sign_in_ip" end + add_index "users", ["account_id"], name: "index_users_on_account_id", using: :btree add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree |