fixes #2100
This commit is contained in:
5
db/migrate/20140221213349_add_ip_addr_to_dmails.rb
Normal file
5
db/migrate/20140221213349_add_ip_addr_to_dmails.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddIpAddrToDmails < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :dmails, :creator_ip_addr, :inet, :null => false, :default => "127.0.0.1"
|
||||
end
|
||||
end
|
||||
@@ -849,7 +849,8 @@ CREATE TABLE dmails (
|
||||
is_read boolean DEFAULT false NOT NULL,
|
||||
is_deleted boolean DEFAULT false NOT NULL,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
creator_ip_addr inet DEFAULT '127.0.0.1'::inet NOT NULL
|
||||
);
|
||||
|
||||
|
||||
@@ -6636,4 +6637,6 @@ INSERT INTO schema_migrations (version) VALUES ('20131228230219');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20140111191413');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20140204233337');
|
||||
INSERT INTO schema_migrations (version) VALUES ('20140204233337');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20140221213349');
|
||||
Reference in New Issue
Block a user