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:
authorIlyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com>2011-07-06 03:29:48 +0400
committerIlyaaaaaaaaaaaaa Zhitomirskiy <ilya@joindiaspora.com>2011-07-06 03:29:48 +0400
commite2b373695d4fef163f415929db4083ee7ef618e1 (patch)
tree1f034b6b1cd9060f8785ccdcb663c6e35c2fc614 /db
parentecaf7974e3e29974ce6a91a714fc7abb5e2178e1 (diff)
Add null false on tag_followings fields
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20110701215925_create_tag_followings.rb4
-rw-r--r--db/schema.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/db/migrate/20110701215925_create_tag_followings.rb b/db/migrate/20110701215925_create_tag_followings.rb
index c8bb4afbe..aa5443702 100644
--- a/db/migrate/20110701215925_create_tag_followings.rb
+++ b/db/migrate/20110701215925_create_tag_followings.rb
@@ -1,8 +1,8 @@
class CreateTagFollowings < ActiveRecord::Migration
def self.up
create_table :tag_followings do |t|
- t.integer :tag_id
- t.integer :user_id
+ t.integer :tag_id, :null => false
+ t.integer :user_id, :null => false
t.timestamps
end
diff --git a/db/schema.rb b/db/schema.rb
index a702f0281..a6d58dfb0 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -327,8 +327,8 @@ ActiveRecord::Schema.define(:version => 20110705003445) do
add_index "services", ["user_id"], :name => "index_services_on_user_id"
create_table "tag_followings", :force => true do |t|
- t.integer "tag_id"
- t.integer "user_id"
+ t.integer "tag_id", :null => false
+ t.integer "user_id", :null => false
t.datetime "created_at"
t.datetime "updated_at"
end