Add sequential_id to calculate auto incrementing submission id

This commit is contained in:
2020-04-12 23:18:55 +02:00
parent 38166282a7
commit bffed7a606
5 changed files with 18 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddSequentialIdToSubmissions < ActiveRecord::Migration[6.0]
def change
add_column :submissions, :sequential_id, :integer
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2020_04_09_001610) do
ActiveRecord::Schema.define(version: 2020_04_12_165834) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -63,6 +63,7 @@ ActiveRecord::Schema.define(version: 2020_04_09_001610) do
t.datetime "updated_at", precision: 6, null: false
t.string "remote_ip"
t.string "referrer"
t.integer "sequential_id"
end
create_table "users", force: :cascade do |t|