Add null false on tag_followings fields
This commit is contained in:
parent
ecaf7974e3
commit
e2b373695d
2 changed files with 4 additions and 4 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
class CreateTagFollowings < ActiveRecord::Migration
|
class CreateTagFollowings < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
create_table :tag_followings do |t|
|
create_table :tag_followings do |t|
|
||||||
t.integer :tag_id
|
t.integer :tag_id, :null => false
|
||||||
t.integer :user_id
|
t.integer :user_id, :null => false
|
||||||
|
|
||||||
t.timestamps
|
t.timestamps
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -327,8 +327,8 @@ ActiveRecord::Schema.define(:version => 20110705003445) do
|
||||||
add_index "services", ["user_id"], :name => "index_services_on_user_id"
|
add_index "services", ["user_id"], :name => "index_services_on_user_id"
|
||||||
|
|
||||||
create_table "tag_followings", :force => true do |t|
|
create_table "tag_followings", :force => true do |t|
|
||||||
t.integer "tag_id"
|
t.integer "tag_id", :null => false
|
||||||
t.integer "user_id"
|
t.integer "user_id", :null => false
|
||||||
t.datetime "created_at"
|
t.datetime "created_at"
|
||||||
t.datetime "updated_at"
|
t.datetime "updated_at"
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue