diff --git a/Gemfile.lock b/Gemfile.lock index 677c6a2..3d679e7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,286 +1,283 @@ -GEM - remote: https://rails-assets.org/ - specs: - rails-assets-es6-promise (4.2.4) - rails-assets-sweetalert2 (5.1.1) - rails-assets-es6-promise - GEM remote: https://rubygems.org/ + remote: https://rails-assets.org/ specs: actioncable (5.2.6) actionpack (= 5.2.6) nio4r (~> 2.0) websocket-driver (>= 0.6.1) actionmailer (5.2.6) actionpack (= 5.2.6) actionview (= 5.2.6) activejob (= 5.2.6) mail (~> 2.5, >= 2.5.4) rails-dom-testing (~> 2.0) actionpack (5.2.6) actionview (= 5.2.6) activesupport (= 5.2.6) rack (~> 2.0, >= 2.0.8) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.2) actionview (5.2.6) activesupport (= 5.2.6) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.0.3) activejob (5.2.6) activesupport (= 5.2.6) globalid (>= 0.3.6) activemodel (5.2.6) activesupport (= 5.2.6) activerecord (5.2.6) activemodel (= 5.2.6) activesupport (= 5.2.6) arel (>= 9.0) activestorage (5.2.6) actionpack (= 5.2.6) activerecord (= 5.2.6) marcel (~> 1.0.0) activesupport (5.2.6) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 0.7, < 2) minitest (~> 5.1) tzinfo (~> 1.1) addressable (2.8.0) public_suffix (>= 2.0.2, < 5.0) archive-zip (0.12.0) io-like (~> 0.3.0) arel (9.0.0) bindex (0.8.1) bootsnap (1.9.1) msgpack (~> 1.0) builder (3.2.4) byebug (11.1.3) capybara (3.35.3) addressable mini_mime (>= 0.1.3) nokogiri (~> 1.8) rack (>= 1.6.0) rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) chartkick (4.0.5) childprocess (3.0.0) chromedriver-helper (2.1.1) archive-zip (~> 0.10) nokogiri (~> 1.8) coffee-rails (4.2.2) coffee-script (>= 2.2.0) railties (>= 4.0.0) coffee-script (2.4.1) coffee-script-source execjs coffee-script-source (1.12.2) concurrent-ruby (1.1.9) connection_pool (2.2.5) crass (1.0.6) e2mmap (0.1.0) erubi (1.10.0) et-orbi (1.2.5) tzinfo execjs (2.8.1) faraday (1.8.0) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) faraday-excon (~> 1.1) faraday-httpclient (~> 1.0.1) faraday-net_http (~> 1.0) faraday-net_http_persistent (~> 1.1) faraday-patron (~> 1.0) faraday-rack (~> 1.0) multipart-post (>= 1.2, < 3) ruby2_keywords (>= 0.0.4) faraday-em_http (1.0.0) faraday-em_synchrony (1.0.0) faraday-excon (1.1.0) faraday-httpclient (1.0.1) faraday-net_http (1.0.1) faraday-net_http_persistent (1.2.0) faraday-patron (1.0.0) faraday-rack (1.0.0) ffi (1.15.4) fugit (1.5.2) et-orbi (~> 1.1, >= 1.1.8) raabro (~> 1.4) globalid (0.5.2) activesupport (>= 5.0) groupdate (5.2.2) activesupport (>= 5) httpclient (2.8.3) i18n (1.8.10) concurrent-ruby (~> 1.0) io-like (0.3.1) jbuilder (2.11.2) activesupport (>= 5.0.0) listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) ruby_dep (~> 1.2) loofah (2.12.0) crass (~> 1.0.2) nokogiri (>= 1.5.9) mail (2.7.1) mini_mime (>= 0.1.1) marcel (1.0.2) method_source (1.0.0) mini_mime (1.1.1) mini_portile2 (2.6.1) minitest (5.14.4) msgpack (1.4.2) multipart-post (2.1.1) nio4r (2.5.8) nokogiri (1.12.5) mini_portile2 (~> 2.6.1) racc (~> 1.4) pg (1.2.3) public_suffix (4.0.6) puma (4.3.8) nio4r (~> 2.0) raabro (1.4.0) racc (1.5.2) rack (2.2.3) rack-test (1.1.0) rack (>= 1.0, < 3) rails (5.2.6) actioncable (= 5.2.6) actionmailer (= 5.2.6) actionpack (= 5.2.6) actionview (= 5.2.6) activejob (= 5.2.6) activemodel (= 5.2.6) activerecord (= 5.2.6) activestorage (= 5.2.6) activesupport (= 5.2.6) bundler (>= 1.3.0) railties (= 5.2.6) sprockets-rails (>= 2.0.0) + rails-assets-es6-promise (4.2.4) + rails-assets-sweetalert2 (5.1.1) + rails-assets-es6-promise rails-dom-testing (2.0.3) activesupport (>= 4.2.0) nokogiri (>= 1.6) rails-html-sanitizer (1.4.2) loofah (~> 2.3) railties (5.2.6) actionpack (= 5.2.6) activesupport (= 5.2.6) method_source rake (>= 0.8.7) thor (>= 0.19.0, < 2.0) rake (13.0.6) rb-fsevent (0.11.0) rb-inotify (0.10.1) ffi (~> 1.0) redis (4.4.0) regexp_parser (2.1.1) ruby2_keywords (0.0.5) ruby_dep (1.5.0) rubyzip (2.3.2) rufus-scheduler (3.8.0) fugit (~> 1.1, >= 1.1.6) sass (3.7.4) sass-listen (~> 4.0.0) sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) sass-rails (5.1.0) railties (>= 5.2.0) sass (~> 3.1) sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) tilt (>= 1.1, < 3) selenium-webdriver (3.142.7) childprocess (>= 0.5, < 4.0) rubyzip (>= 1.2.2) sentry-raven (3.1.2) faraday (>= 1.0) sidekiq (6.2.2) connection_pool (>= 2.2.2) rack (~> 2.0) redis (>= 4.2.0) sidekiq-scheduler (3.1.0) e2mmap redis (>= 3, < 5) rufus-scheduler (~> 3.2) sidekiq (>= 3) thwait tilt (>= 1.4.0) spring (2.1.1) spring-watcher-listen (2.0.1) listen (>= 2.7, < 4.0) spring (>= 1.2, < 3.0) sprockets (3.7.2) concurrent-ruby (~> 1.0) rack (> 1, < 3) sprockets-rails (3.2.2) actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) telegram-bot (0.15.4) actionpack (>= 4.0, < 6.2) activesupport (>= 4.0, < 6.2) httpclient (~> 2.7) thor (1.1.0) thread_safe (0.3.6) thwait (0.2.0) e2mmap tilt (2.0.10) turbolinks (5.2.1) turbolinks-source (~> 5.2) turbolinks-source (5.2.0) tzinfo (1.2.9) thread_safe (~> 0.1) uglifier (4.2.0) execjs (>= 0.3.0, < 3) web-console (3.7.0) actionview (>= 5.0) activemodel (>= 5.0) bindex (>= 0.4.0) railties (>= 5.0) websocket-driver (0.7.5) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) PLATFORMS ruby DEPENDENCIES bootsnap (>= 1.1.0) byebug capybara (>= 2.15) chartkick chromedriver-helper coffee-rails (~> 4.2) groupdate jbuilder (~> 2.5) listen (>= 3.0.5, < 3.2) pg puma (~> 4.3) rails (~> 5.2.3) rails-assets-sweetalert2 (~> 5.1.1)! sass-rails (~> 5.0) selenium-webdriver sentry-raven sidekiq sidekiq-scheduler spring spring-watcher-listen (~> 2.0.0) telegram-bot turbolinks (~> 5) tzinfo-data uglifier (>= 1.3.0) web-console (>= 3.3.0) RUBY VERSION ruby 2.7.2p137 BUNDLED WITH 2.2.9 diff --git a/db/migrate/20211230130749_change_userid_formats.rb b/db/migrate/20211230130749_change_userid_formats.rb new file mode 100644 index 0000000..81094e5 --- /dev/null +++ b/db/migrate/20211230130749_change_userid_formats.rb @@ -0,0 +1,6 @@ +class ChangeUseridFormats < ActiveRecord::Migration[5.2] + def change + change_column :senders, :chat_id, :bigint + change_column :asds, :update_id, :bigint + end +end diff --git a/db/schema.rb b/db/schema.rb index 29287e0..f9f3fac 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1,79 +1,79 @@ # This file is auto-generated from the current state of the database. Instead # of editing this file, please use the migrations feature of Active Record to # incrementally modify your database, and then regenerate this schema definition. # # Note that this schema.rb definition is the authoritative source for your # database schema. If you need to create the application database on another # system, you should be using db:schema:load, not running all the migrations # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2019_09_11_221023) do +ActiveRecord::Schema.define(version: 2021_12_30_130749) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" create_table "asds", force: :cascade do |t| t.bigint "group_id" t.bigint "sender_id" - t.integer "update_id" + t.bigint "update_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "text" t.boolean "nightsend" t.integer "multiple_times" t.index ["group_id"], name: "index_asds_on_group_id" t.index ["sender_id"], name: "index_asds_on_sender_id" end create_table "crono_jobs", force: :cascade do |t| t.string "job_id", null: false t.text "log" t.datetime "last_performed_at" t.boolean "healthy" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["job_id"], name: "index_crono_jobs_on_job_id", unique: true end create_table "groups", force: :cascade do |t| t.bigint "chat_id" t.string "username" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "welcomesent", default: false t.boolean "nightsend" t.string "title" t.boolean "classifica", default: true t.boolean "silent", default: false t.boolean "admin" t.boolean "deletenotasd" t.boolean "eliminazione", default: false end create_table "senders", force: :cascade do |t| - t.integer "chat_id" + t.bigint "chat_id" t.string "username" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.string "name" t.boolean "classifica", default: true end create_table "special_events", force: :cascade do |t| t.bigint "group_id" t.string "text" t.bigint "asd_id" t.datetime "created_at", null: false t.datetime "updated_at", null: false t.index ["asd_id"], name: "index_special_events_on_asd_id" t.index ["group_id"], name: "index_special_events_on_group_id" end add_foreign_key "asds", "groups" add_foreign_key "asds", "senders" add_foreign_key "special_events", "asds" add_foreign_key "special_events", "groups" end