Skip to content
This repository has been archived by the owner on Mar 21, 2019. It is now read-only.

Commit

Permalink
whoops. default was false
Browse files Browse the repository at this point in the history
  • Loading branch information
phamdt committed Mar 6, 2016
1 parent 569477c commit d6bb46e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20130126215239_create_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def change
t.string :referral_code
t.integer :referrer_id

t.timestamps null: true
t.timestamps null: false
end
end
end
2 changes: 1 addition & 1 deletion db/migrate/20130127063936_devise_create_admin_users.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def change
# t.string :authentication_token


t.timestamps null: true
t.timestamps null: false
end

add_index :admin_users, :email, :unique => true
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130127063939_create_admin_notes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.up
t.string :resource_type, :null => false
t.references :admin_user, :polymorphic => true
t.text :body
t.timestamps null: true
t.timestamps null: false
end
add_index :admin_notes, [:resource_type, :resource_id]
add_index :admin_notes, [:admin_user_type, :admin_user_id]
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130227185712_create_delayed_jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.up
table.datetime :failed_at # Set when all retries have failed (actually, by default, the record is deleted instead)
table.string :locked_by # Who is working on this object (if locked)
table.string :queue # The name of the queue this job is in
table.timestamps null: true
table.timestamps null: false
end

add_index :delayed_jobs, [:priority, :run_at], :name => 'delayed_jobs_priority'
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20130312045541_create_ip_addresses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def change
t.string :address
t.integer :count

t.timestamps null: true
t.timestamps null: false
end
end
end
20 changes: 10 additions & 10 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
t.integer "author_id"
t.string "author_type"
t.text "body"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "namespace"
end

Expand All @@ -42,8 +42,8 @@
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"
t.string "last_sign_in_ip"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "admin_users", ["email"], name: "index_admin_users_on_email", unique: true, using: :btree
Expand All @@ -59,25 +59,25 @@
t.datetime "failed_at"
t.string "locked_by"
t.string "queue"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

add_index "delayed_jobs", ["priority", "run_at"], name: "delayed_jobs_priority", using: :btree

create_table "ip_addresses", force: :cascade do |t|
t.string "address"
t.integer "count"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "users", force: :cascade do |t|
t.string "email"
t.string "referral_code"
t.integer "referrer_id"
t.datetime "created_at"
t.datetime "updated_at"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

end

0 comments on commit d6bb46e

Please sign in to comment.