Add null false on tag_followings fields

This commit is contained in:
Ilyaaaaaaaaaaaaa Zhitomirskiy 2011-07-05 16:29:48 -07:00
parent ecaf7974e3
commit e2b373695d
2 changed files with 4 additions and 4 deletions

View file

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

View file

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