mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
User import added
This commit is contained in:
parent
a3272fab43
commit
66d7d80bcc
6 changed files with 57 additions and 2 deletions
5
db/migrate/20151029152638_add_legacy_id_to_users.rb
Normal file
5
db/migrate/20151029152638_add_legacy_id_to_users.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddLegacyIdToUsers < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :users, :legacy_id, :integer
|
||||
end
|
||||
end
|
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150921111842) do
|
||||
ActiveRecord::Schema.define(version: 20151029152638) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -1053,6 +1053,7 @@ ActiveRecord::Schema.define(version: 20150921111842) do
|
|||
t.datetime "remember_created_at"
|
||||
t.integer "failed_attempts", default: 0, null: false
|
||||
t.datetime "locked_at"
|
||||
t.integer "legacy_id"
|
||||
end
|
||||
|
||||
add_index "users", ["identity_code"], name: "index_users_on_identity_code", using: :btree
|
||||
|
|
|
@ -2658,7 +2658,8 @@ CREATE TABLE users (
|
|||
encrypted_password character varying DEFAULT ''::character varying NOT NULL,
|
||||
remember_created_at timestamp without time zone,
|
||||
failed_attempts integer DEFAULT 0 NOT NULL,
|
||||
locked_at timestamp without time zone
|
||||
locked_at timestamp without time zone,
|
||||
legacy_id integer
|
||||
);
|
||||
|
||||
|
||||
|
@ -4946,3 +4947,5 @@ INSERT INTO schema_migrations (version) VALUES ('20150921110152');
|
|||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20150921111842');
|
||||
|
||||
INSERT INTO schema_migrations (version) VALUES ('20151029152638');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue