Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db/migrate/20161219225847_init_schema.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class InitSchema < ActiveRecord::Migration
class InitSchema < ActiveRecord::Migration[4.2]
def up

# These are extensions that must be enabled in order to support this database
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170111142846_add_nonce_to_identities.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNonceToIdentities < ActiveRecord::Migration
class AddNonceToIdentities < ActiveRecord::Migration[4.2]
def change
# from OpenID Connect authorizations
add_column :identities, :nonce, :string
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170125153626_add_ial_to_identities_again.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddIalToIdentitiesAgain < ActiveRecord::Migration
class AddIalToIdentitiesAgain < ActiveRecord::Migration[4.2]
def change
add_column :identities, :ial, :integer, default: 1
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddAccessTokenToIdentities < ActiveRecord::Migration
class AddAccessTokenToIdentities < ActiveRecord::Migration[4.2]
def change
add_column :identities, :access_token, :string

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddOtpDeliveryPreferenceToUser < ActiveRecord::Migration
class AddOtpDeliveryPreferenceToUser < ActiveRecord::Migration[4.2]
def change
add_column :users, :otp_delivery_preference, :integer, default: 0, index: true, null: false
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170201154458_add_scope_to_identities.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddScopeToIdentities < ActiveRecord::Migration
class AddScopeToIdentities < ActiveRecord::Migration[4.2]
def change
add_column :identities, :scope, :string
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddCodeChallengeToIdentities < ActiveRecord::Migration
class AddCodeChallengeToIdentities < ActiveRecord::Migration[4.2]
def change
add_column :identities, :code_challenge, :string
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveUnusedEncryptedOtpSecretColumns < ActiveRecord::Migration
class RemoveUnusedEncryptedOtpSecretColumns < ActiveRecord::Migration[4.2]
def change
remove_column :users, :encrypted_otp_secret_key_iv, :string
remove_column :users, :encrypted_otp_secret_key_salt, :string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class UpdateEncryptedOtpSecretKeyLength < ActiveRecord::Migration
class UpdateEncryptedOtpSecretKeyLength < ActiveRecord::Migration[4.2]
def change
change_column :users, :encrypted_otp_secret_key, :text
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddRailsSessionIdToIdentities < ActiveRecord::Migration
class AddRailsSessionIdToIdentities < ActiveRecord::Migration[4.2]
def change
add_column :identities, :rails_session_id, :string
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170215175444_create_service_providers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateServiceProviders < ActiveRecord::Migration
class CreateServiceProviders < ActiveRecord::Migration[4.2]
def change
create_table :service_providers do |t|
t.string "issuer", null: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddNativeToServiceProvider < ActiveRecord::Migration
class AddNativeToServiceProvider < ActiveRecord::Migration[4.2]
def change
add_column :service_providers, :native, :boolean, default: false, null: false
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170306214524_add_usps_confirmations.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddUspsConfirmations < ActiveRecord::Migration
class AddUspsConfirmations < ActiveRecord::Migration[4.2]
def change
create_table :usps_confirmations, force: :cascade do |t|
t.text :entry, null: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateServiceProviderRequests < ActiveRecord::Migration
class CreateServiceProviderRequests < ActiveRecord::Migration[4.2]
def change
create_table :service_provider_requests do |t|
t.string :issuer, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170321170517_drop_plaintext_columns.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DropPlaintextColumns < ActiveRecord::Migration
class DropPlaintextColumns < ActiveRecord::Migration[4.2]
def change
remove_column :users, :phone_plain
remove_column :users, :otp_secret_key
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170413152832_add_profile_phone_confirmed.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddProfilePhoneConfirmed < ActiveRecord::Migration
class AddProfilePhoneConfirmed < ActiveRecord::Migration[4.2]
def change
add_column :profiles, :phone_confirmed, :boolean, default: false, null: false
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddRequestedAttributesToServiceProviderRequest < ActiveRecord::Migration
class AddRequestedAttributesToServiceProviderRequest < ActiveRecord::Migration[4.2]
def change
add_column :service_provider_requests, :requested_attributes, :string, array: true, default: []
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddMultipleRedirectUrisToServiceProviders < ActiveRecord::Migration
class AddMultipleRedirectUrisToServiceProviders < ActiveRecord::Migration[4.2]
def change
add_column :service_providers, :redirect_uris, :string, array: true, default: []
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20170621202836_create_otp_requests_tracker.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateOtpRequestsTracker < ActiveRecord::Migration
class CreateOtpRequestsTracker < ActiveRecord::Migration[4.2]
def change
create_table :otp_requests_trackers do |t|
t.text :encrypted_phone
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveEncryptedPhoneFromOtpRequestsTracker < ActiveRecord::Migration
class RemoveEncryptedPhoneFromOtpRequestsTracker < ActiveRecord::Migration[4.2]
def change
remove_column :otp_requests_trackers, :encrypted_phone, :string
end
Expand Down