Commit Graph

20 Commits

Author SHA1 Message Date
evazion
88dfc463a1 db/seeds: fix deprecation warning in find_or_create_by!.
`User.find_or_create_by!` calls `User.name_matches` during username
validation, which triggers a deprecation warning for some reason:

    DEPRECATION WARNING: Class level methods will no longer inherit scoping
    from `create!` in Rails 6.1. To continue using the scoped relation,
    pass it into the block directly. To instead access the full set of
    models, as Rails 6.1 will, use `User.default_scoped`.
2020-06-10 22:33:36 -05:00
evazion
fcec99405c Fix failure in rake db:migrate on fresh install (#3443).
Create the DanbooruBot account in db/seeds.rb instead of in an
initializer. Move the old db/seeds.rb to db/populate.rb.

Fixes a bug introduced in e2eb45a. Creating DanbooruBot in an
initializer was wrong because in a fresh install the users table doesn't
exist yet. This caused `rake db:migrate` to fail.
2017-12-21 12:08:08 -06:00
r888888888
e70c2a3085 remove references to tag subscriptions 2017-11-17 13:45:17 -08:00
Type-kun
ca2adac3f0 Include user with every level/privilege in seeds.rb 2017-06-14 18:33:54 +05:00
r888888888
4b24a5cb7e update to rails 4.2.5.1, add debugging info for tracking slow queries 2016-02-23 16:34:33 -08:00
r888888888
f02f72fac1 implement saved searches, move user boolean settings to bitprefs 2014-06-18 16:16:27 -07:00
r888888888
e2a38ebc17 fixes #1284 2013-04-21 11:36:43 -07:00
r888888888
7a747e9ac0 fixes #1371, additional fixes to seed script 2013-04-19 15:21:43 -07:00
r888888888
2dfa616f33 fixes #1350, better db:seed script 2013-04-16 20:23:02 -07:00
小太
cba839ba76 Kill trailing whitespace in ruby files 2013-03-19 23:10:10 +11:00
albert
086e70db54 Fixes #361 2013-01-22 14:41:16 -05:00
albert
964f74d6cd fixes 2012-09-21 15:41:05 -04:00
albert
a7267cf00b fixed tests 2011-10-16 01:40:42 -04:00
albert
abbaf7f7ec more randomized seed data 2011-09-16 15:39:08 -04:00
albert
72bfac3d90 prevent the creation of users with empty string email addresses 2011-09-11 17:48:30 -04:00
albert
3395c97c65 fixed comment hiding 2011-09-11 16:40:58 -04:00
albert
c8afd34d15 added ip addr search 2011-07-29 18:04:50 -04:00
albert
a16dfdf0dd fixes 2011-07-09 03:32:18 -04:00
albert
085995126c changes 2011-07-03 19:12:31 -04:00
Albert Yi
9bb07046cd initial 2010-02-04 15:08:49 -05:00