fixes #2557
This commit is contained in:
6
db/migrate/20151217213321_add_last_ip_addr_to_users.rb
Normal file
6
db/migrate/20151217213321_add_last_ip_addr_to_users.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
class AddLastIpAddrToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :last_ip_addr, :inet
|
||||
add_index :users, :last_ip_addr, where: "last_ip_addr is not null"
|
||||
end
|
||||
end
|
||||
@@ -3175,7 +3175,8 @@ furry -rating:s'::text,
|
||||
bcrypt_password_hash text,
|
||||
per_page integer DEFAULT 20 NOT NULL,
|
||||
custom_style text,
|
||||
bit_prefs bigint DEFAULT 0 NOT NULL
|
||||
bit_prefs bigint DEFAULT 0 NOT NULL,
|
||||
last_ip_addr inet
|
||||
);
|
||||
|
||||
|
||||
@@ -7276,3 +7277,5 @@ INSERT INTO schema_migrations (version) VALUES ('20150728170433');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150805010245');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20151217213321');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user