Add sequential_id to calculate auto incrementing submission id
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddSequentialIdToSubmissions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
add_column :submissions, :sequential_id, :integer
|
||||
end
|
||||
end
|
||||
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user