Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorManuel Schölling <manuel.schoelling@gmx.de>2011-07-10 21:37:51 +0400
committerManuel Schölling <manuel.schoelling@gmx.de>2011-07-10 22:37:11 +0400
commit0855144a0aebcc9cf7f2afe43a054aae6cb857e3 (patch)
treef80e5897f1f0fcfc5192a0fb392fe48ef9b01e69 /db
parente1a7ff798a1a98fb16b0db8d2c099062fcdc809f (diff)
Issue #842: Sortable aspects
Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20110710102747_add_order_id_to_aspects.rb9
-rw-r--r--db/schema.rb3
2 files changed, 11 insertions, 1 deletions
diff --git a/db/migrate/20110710102747_add_order_id_to_aspects.rb b/db/migrate/20110710102747_add_order_id_to_aspects.rb
new file mode 100644
index 000000000..ab70b1d32
--- /dev/null
+++ b/db/migrate/20110710102747_add_order_id_to_aspects.rb
@@ -0,0 +1,9 @@
+class AddOrderIdToAspects < ActiveRecord::Migration
+ def self.up
+ add_column :aspects, :order_id, :integer
+ end
+
+ def self.down
+ remove_column :aspects, :order_id
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 536e3167e..1cafba535 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,7 +10,7 @@
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110707221112) do
+ActiveRecord::Schema.define(:version => 20110710102747) do
create_table "aspect_memberships", :force => true do |t|
t.integer "aspect_id", :null => false
@@ -40,6 +40,7 @@ ActiveRecord::Schema.define(:version => 20110707221112) do
t.datetime "created_at"
t.datetime "updated_at"
t.boolean "contacts_visible", :default => true, :null => false
+ t.integer "order_id"
end
add_index "aspects", ["user_id", "contacts_visible"], :name => "index_aspects_on_user_id_and_contacts_visible"