[Git][noosfero/noosfero][master] change db/schema
Leandro Nunes
gitlab at mg.gitlab.com
Fri Feb 24 07:56:45 BRT 2017
Leandro Nunes pushed to branch master at Noosfero / noosfero
Commits:
0963ae88 by Leandro Nunes dos Santos at 2017-02-24T07:55:54-03:00
change db/schema
- - - - -
2 changed files:
- − db/migrate/20161004194609_change_circle_name_index.rb
- db/schema.rb
Changes:
=====================================
db/migrate/20161004194609_change_circle_name_index.rb deleted
=====================================
--- a/db/migrate/20161004194609_change_circle_name_index.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-class ChangeCircleNameIndex < ActiveRecord::Migration
- def up
- remove_index :circles, :name => "circles_composite_key_index"
- add_index :circles, [:person_id, :name, :profile_type], :name => "circles_composite_key_index", :unique => true
- end
-
- def down
- remove_index :circles, :name => "circles_composite_key_index"
- add_index :circles, [:person_id, :name], :name => "circles_composite_key_index", :unique => true
- end
-end
=====================================
db/schema.rb
=====================================
--- 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: 20161213193521) do
+ActiveRecord::Schema.define(version: 20170401104432) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -283,7 +283,7 @@ ActiveRecord::Schema.define(version: 20161213193521) do
t.datetime "updated_at"
end
- add_index "circles", ["person_id", "name"], name: "circles_composite_key_index", unique: true, using: :btree
+ add_index "circles", ["person_id", "name", "profile_type"], name: "circles_composite_key_index", unique: true, using: :btree
create_table "comments", force: :cascade do |t|
t.string "title"
@@ -659,6 +659,7 @@ ActiveRecord::Schema.define(version: 20161213193521) do
t.boolean "invite_friends_only", default: false
t.boolean "secret", default: false
t.string "editor", default: "tiny_mce", null: false
+ t.integer "top_image_id"
end
add_index "profiles", ["activities_count"], name: "index_profiles_on_activities_count", using: :btree
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/0963ae8842280a1d62982abb2fadd7135d4257dd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170224/f393bc5e/attachment-0001.html>
More information about the Noosfero-dev
mailing list