Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rails #442

Merged
merged 68 commits into from
Jan 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
9dda17f
Rails 5.2 and compatible dependencies
barmintor Dec 18, 2023
f88c6f2
introduce ApplicationRecord base model
barmintor Dec 17, 2023
ada6c04
throw(:abort) in authz before_action
barmintor Dec 17, 2023
0e081f8
do not inherit directly from ActiveRecord::Migration, use version number
barmintor Dec 17, 2023
a37d825
rails 5.2 binstubs
barmintor Dec 17, 2023
21988f4
strong params in DigitalObjectController search methods
barmintor Dec 17, 2023
91d995b
utf conversion errors may be raised via JSON::GeneratorError
barmintor Dec 18, 2023
a4b0130
association semantics for Rails 5 in spec fixture set ups
barmintor Dec 18, 2023
bbf1967
Rails 5.2 requires an association to be defined before being used as …
barmintor Dec 18, 2023
8df3f53
Rails 5 makes belongs_to required by default, and optional when speci…
barmintor Dec 18, 2023
f96b176
noid no longer permits #seed with no params, but previous behavior an…
barmintor Dec 18, 2023
d430367
update initializers for Rails 5.2 and use Rails 5.2 defaults
barmintor Dec 18, 2023
910b690
cul_hydra no longer includes unused Resource or BagAggregator models
barmintor Dec 18, 2023
ac94dee
post_via_redirect was removed; call follow_redirect! after post
barmintor Dec 18, 2023
01c1760
guard clause in case jQuery.active returns null
barmintor Dec 18, 2023
722b442
controller test methods now use keyword params for params and session
barmintor Dec 18, 2023
fa1e0b2
run CI against ruby 2.7.6
barmintor Dec 18, 2023
d62a151
Rails 6.0 dependencies
barmintor Dec 18, 2023
6673e64
use Rails 6 initializers
barmintor Dec 18, 2023
d4d2a38
use Rails.application in routes config
barmintor Dec 18, 2023
c310c39
update the standard app environments for Rails 6
barmintor Dec 18, 2023
d5e4d4c
update binstubs for Rails 6
barmintor Dec 18, 2023
186687b
update puma config
barmintor Dec 18, 2023
8b30e56
update test cable adapter config from async to test per Rails 6 defaults
barmintor Dec 18, 2023
9c0c10f
explicitly name a shorter db index field name on controlled vocabularies
barmintor Dec 19, 2023
8f1e79f
ensure custom_field_key is a string before concatenating
barmintor Dec 19, 2023
35b5eeb
rename Assignments enum value 'annotate' to 'annotate_object'
barmintor Dec 19, 2023
cf06341
update development ruby version to 2.7.6
barmintor Dec 19, 2023
f566b75
Update deploy config and hyacinth_dev deployment target; Update capis…
elohanlon Dec 19, 2023
82efc71
Temporarily comment out resque restart in deploy.rb
elohanlon Dec 19, 2023
f385ead
Update to Ruby 2.7.8
elohanlon Dec 19, 2023
160605d
Update nokogiri
elohanlon Dec 19, 2023
050181c
Schema update after running migrations
elohanlon Dec 19, 2023
ee94cce
Set Nokogiri XML document namespace_inheritance to true in a couple o…
elohanlon Dec 19, 2023
1b4939c
Replace default_scope with self.implicit_order_column to remove some …
elohanlon Dec 19, 2023
ae9ed18
Re-enable cap hyacinth:restart_resque_workers task
elohanlon Dec 19, 2023
7e83a02
Force psych gem version < 4 (to support YAML aliases with Rails 6.0);…
elohanlon Dec 20, 2023
3c28901
Re-enable cap hyacinth:restart_resque_workers task (again)
elohanlon Dec 20, 2023
f91e3a3
In application.rb, change 'config.load_defaults 5.2' to 'config.load_…
elohanlon Dec 20, 2023
8f2448c
Use classic autoloader (instead of zeitwerk) for cul_hydra compatibility
elohanlon Dec 20, 2023
142fe30
Change 'render text:' to 'render plain:' in controllers
elohanlon Dec 20, 2023
f87bca0
Basic Vite setup (with more changes to come)
elohanlon Dec 20, 2023
7fd4d58
Fixes for slow asset compilation in development environment (and poss…
elohanlon Dec 20, 2023
40db2f6
Add NVM/node setup for deploy.rb
elohanlon Dec 20, 2023
57f49f6
Remove package-lock.json because we currently only want to use yarn a…
elohanlon Dec 20, 2023
fa000c1
Update node version to 20.10.0
elohanlon Dec 21, 2023
133fbe7
Rubocop fix
elohanlon Dec 21, 2023
162764f
Update GitHub ci.yml file to set up node
elohanlon Dec 21, 2023
539ee40
Fix a couple of errors that appear when using the Rails console on re…
elohanlon Dec 21, 2023
0ced1d3
Gemfile cleanup; Rename constant Hyacinth::XMLGenerator to Hyacinth::…
elohanlon Dec 21, 2023
b61629f
use a cul_hydra ref with no blacklight dependency and some zeitwerk-f…
barmintor Dec 21, 2023
c698d54
Remove XmlGenerator inflection override now that XMLGenerator class h…
elohanlon Dec 21, 2023
ead8367
Remove some deprecation warnings
elohanlon Dec 21, 2023
9ae0367
Switch to :hybrid cookie serializer during this transitional period s…
elohanlon Dec 21, 2023
01dbb2a
Rubocop fix and comment update
elohanlon Dec 21, 2023
d190a5e
Fix some more deprecation warnings
elohanlon Dec 21, 2023
1c57afa
Merge pull request #444 from cul/update-rails_no-blacklight_zeitwerk
elohanlon Dec 21, 2023
76fdfff
Update to Rails 6.1
elohanlon Dec 22, 2023
7d4deb1
Update rspec-rails and fix broken fixture_file_upload reference
elohanlon Dec 22, 2023
d488372
Fixes for login in development environment; Switch from secrets.yml t…
elohanlon Dec 22, 2023
4d42835
Add master.key to deployment config file symlink list (and remove sec…
elohanlon Dec 22, 2023
a796de5
Deployment config updates
elohanlon Dec 28, 2023
1b0725b
Update to bundler 2
elohanlon Dec 28, 2023
0518b65
Require net-http gem explicitly (and allow any version) to fix an iss…
elohanlon Dec 28, 2023
0760058
Pin uri gem to 0.10.0 to match the default/standard gem version that …
elohanlon Dec 28, 2023
09cabe6
Add updateHandler configs to various solr cores (to fix error message…
elohanlon Dec 29, 2023
ccd6f82
Update: Actually pin uri gem to 0.10.0.2, because that's the version …
elohanlon Dec 29, 2023
0289cc7
Update CI ruby version to 2.7.8
elohanlon Dec 29, 2023
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
Prev Previous commit
Next Next commit
do not inherit directly from ActiveRecord::Migration, use version number
barmintor committed Dec 18, 2023
commit 0e081f8fa9890b1f2986bab485c72864a4301d5a
2 changes: 1 addition & 1 deletion db/migrate/20140109044600_create_pid_generators.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreatePidGenerators < ActiveRecord::Migration
class CreatePidGenerators < ActiveRecord::Migration[4.2]
def change
create_table :pid_generators do |t|
t.string :namespace
2 changes: 1 addition & 1 deletion db/migrate/20140320154805_create_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateUsers < ActiveRecord::Migration
class CreateUsers < ActiveRecord::Migration[4.2]
def change
create_table :users do |t|
t.string :first_name
2 changes: 1 addition & 1 deletion db/migrate/20140320154810_add_devise_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddDeviseToUsers < ActiveRecord::Migration
class AddDeviseToUsers < ActiveRecord::Migration[4.2]
def change
change_table(:users) do |t|
## Database authenticatable
2 changes: 1 addition & 1 deletion db/migrate/20140320154820_create_projects.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateProjects < ActiveRecord::Migration
class CreateProjects < ActiveRecord::Migration[4.2]
def change
create_table :projects do |t|
t.string :pid
2 changes: 1 addition & 1 deletion db/migrate/20140320154821_create_project_permissions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateProjectPermissions < ActiveRecord::Migration
class CreateProjectPermissions < ActiveRecord::Migration[4.2]
def change
create_table :project_permissions do |t|
t.references :project, index: true
2 changes: 1 addition & 1 deletion db/migrate/20140320154822_create_enabled_dynamic_fields.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEnabledDynamicFields < ActiveRecord::Migration
class CreateEnabledDynamicFields < ActiveRecord::Migration[4.2]
def change
create_table :enabled_dynamic_fields do |t|
t.references :project, null: false, index: true
2 changes: 1 addition & 1 deletion db/migrate/20140320154825_create_digital_object_types.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateDigitalObjectTypes < ActiveRecord::Migration
class CreateDigitalObjectTypes < ActiveRecord::Migration[4.2]
def change
create_table :digital_object_types do |t|
t.string :string_key
2 changes: 1 addition & 1 deletion db/migrate/20140320154830_create_digital_object_records.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateDigitalObjectRecords < ActiveRecord::Migration
class CreateDigitalObjectRecords < ActiveRecord::Migration[4.2]
def change
create_table :digital_object_records do |t|
t.string :pid, unique: true
2 changes: 1 addition & 1 deletion db/migrate/20140320154835_create_xml_datastreams.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateXmlDatastreams < ActiveRecord::Migration
class CreateXmlDatastreams < ActiveRecord::Migration[4.2]
def change
create_table :xml_datastreams do |t|
t.string :string_key, unique: true, limit: 64 # Fedora Datastreams have a max length of 64 characters
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateDynamicFieldGroupCategories < ActiveRecord::Migration
class CreateDynamicFieldGroupCategories < ActiveRecord::Migration[4.2]
def change
create_table :dynamic_field_group_categories do |t|
t.string :display_label, index: true
2 changes: 1 addition & 1 deletion db/migrate/20140320154845_create_dynamic_field_groups.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateDynamicFieldGroups < ActiveRecord::Migration
class CreateDynamicFieldGroups < ActiveRecord::Migration[4.2]
def change
create_table :dynamic_field_groups do |t|
t.string :string_key, index: true, null: false
2 changes: 1 addition & 1 deletion db/migrate/20140320154850_create_dynamic_fields.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateDynamicFields < ActiveRecord::Migration
class CreateDynamicFields < ActiveRecord::Migration[4.2]
def change
create_table :dynamic_fields do |t|
t.string :string_key, index: true, null: false
2 changes: 1 addition & 1 deletion db/migrate/20141015135200_create_fieldsets.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateFieldsets < ActiveRecord::Migration
class CreateFieldsets < ActiveRecord::Migration[4.2]
def change
create_table :fieldsets do |t|
t.string :display_label
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEnabledDynamicFieldsFieldsets < ActiveRecord::Migration
class CreateEnabledDynamicFieldsFieldsets < ActiveRecord::Migration[4.2]
def change
create_table :enabled_dynamic_fields_fieldsets, id: false do |t|
t.references :enabled_dynamic_field
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateControlledVocabularies < ActiveRecord::Migration
class CreateControlledVocabularies < ActiveRecord::Migration[4.2]
def change
create_table :controlled_vocabularies do |t|
t.string :string_key
2 changes: 1 addition & 1 deletion db/migrate/20141104010523_create_authorized_terms.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateAuthorizedTerms < ActiveRecord::Migration
class CreateAuthorizedTerms < ActiveRecord::Migration[4.2]
def change

# This entire table will be deleted in the future
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEnabledPublishTargets < ActiveRecord::Migration
class CreateEnabledPublishTargets < ActiveRecord::Migration[4.2]
def change
create_table :enabled_publish_targets do |t|
t.references :project, null: false, index: true
2 changes: 1 addition & 1 deletion db/migrate/20141104010555_create_publish_targets.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreatePublishTargets < ActiveRecord::Migration
class CreatePublishTargets < ActiveRecord::Migration[4.2]
def change
create_table :publish_targets do |t|
t.string :pid
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddStringKeyToPublishTargets < ActiveRecord::Migration
class AddStringKeyToPublishTargets < ActiveRecord::Migration[4.2]
def change
change_table(:publish_targets) do |t|
t.string :string_key, null: true
2 changes: 1 addition & 1 deletion db/migrate/20151007200134_create_import_jobs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateImportJobs < ActiveRecord::Migration
class CreateImportJobs < ActiveRecord::Migration[4.2]

def change

2 changes: 1 addition & 1 deletion db/migrate/20151007200326_create_digital_object_imports.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateDigitalObjectImports < ActiveRecord::Migration
class CreateDigitalObjectImports < ActiveRecord::Migration[4.2]

def change

2 changes: 1 addition & 1 deletion db/migrate/20151202164848_create_csv_exports.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateCsvExports < ActiveRecord::Migration
class CreateCsvExports < ActiveRecord::Migration[4.2]
def change
create_table :csv_exports do |t|
t.text :search_params
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddRequeueCountToDigitalObjectImports < ActiveRecord::Migration
class AddRequeueCountToDigitalObjectImports < ActiveRecord::Migration[4.2]
def change
add_column :digital_object_imports, :requeue_count, :integer, default: 0, null: false
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddCanPublishToProjectPermissions < ActiveRecord::Migration
class AddCanPublishToProjectPermissions < ActiveRecord::Migration[4.2]
def change
change_table(:project_permissions) do |t|
t.boolean :can_publish, :null => false, :default => false
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveXmlDatastreamFromDynamicFieldGroups < ActiveRecord::Migration
class RemoveXmlDatastreamFromDynamicFieldGroups < ActiveRecord::Migration[4.2]
def change
change_table :dynamic_field_groups do |t|
t.remove_references :xml_datastream
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeDynamicFieldsAddControlledVocabularyStringKey < ActiveRecord::Migration
class ChangeDynamicFieldsAddControlledVocabularyStringKey < ActiveRecord::Migration[4.2]
def change
change_table :dynamic_fields do |t|
t.remove_references :controlled_vocabulary
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeControlledVocabulariesRemoveUnusedFields < ActiveRecord::Migration
class ChangeControlledVocabulariesRemoveUnusedFields < ActiveRecord::Migration[4.2]
def change
change_table :controlled_vocabularies do |t|
t.remove :pid
2 changes: 1 addition & 1 deletion db/migrate/20160104192553_drop_authorized_terms.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DropAuthorizedTerms < ActiveRecord::Migration
class DropAuthorizedTerms < ActiveRecord::Migration[4.2]
def change
drop_table :authorized_terms
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddDurationAndNumberOfRecordsProcessedToCsvExports < ActiveRecord::Migration
class AddDurationAndNumberOfRecordsProcessedToCsvExports < ActiveRecord::Migration[4.2]
def change
change_table(:csv_exports) do |t|
t.integer :duration, :null => false, :default => 0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddCsvRowNumberToDigitalObjectImports < ActiveRecord::Migration
class AddCsvRowNumberToDigitalObjectImports < ActiveRecord::Migration[4.2]
def change
change_table(:digital_object_imports) do |t|
t.integer :csv_row_number, null: true
2 changes: 1 addition & 1 deletion db/migrate/20160205162928_add_uri_to_projects.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddUriToProjects < ActiveRecord::Migration
class AddUriToProjects < ActiveRecord::Migration[4.2]
def change
change_table(:projects) do |t|
t.text :uri, null: true
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddCanManageAllControlledVocabulariesToUsers < ActiveRecord::Migration
class AddCanManageAllControlledVocabulariesToUsers < ActiveRecord::Migration[4.2]
def change
change_table(:users) do |t|
t.boolean :can_manage_all_controlled_vocabularies, null: false, default: false
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddRequireControlledVocabularyManagerPermissionToControlledVocabularies < ActiveRecord::Migration
class AddRequireControlledVocabularyManagerPermissionToControlledVocabularies < ActiveRecord::Migration[4.2]
def change
change_table(:controlled_vocabularies) do |t|
t.remove :only_managed_by_admins
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddPathToCsvFileToImportJobs < ActiveRecord::Migration
class AddPathToCsvFileToImportJobs < ActiveRecord::Migration[4.2]
def change
change_table(:import_jobs) do |t|
t.text :path_to_csv_file
2 changes: 1 addition & 1 deletion db/migrate/20160921112351_add_short_label_to_projects.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddShortLabelToProjects < ActiveRecord::Migration
class AddShortLabelToProjects < ActiveRecord::Migration[4.2]
def change
change_table(:projects) do |t|
t.string :short_label, null: true, limit: 255
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeProjectsAddEnabledPublishTargetPids < ActiveRecord::Migration
class ChangeProjectsAddEnabledPublishTargetPids < ActiveRecord::Migration[4.2]
def change
change_table :projects do |t|
t.text :enabled_publish_target_pids # This will be a serialized Rails array field
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeProjectsAddPrimaryPublishTargetPid < ActiveRecord::Migration
class ChangeProjectsAddPrimaryPublishTargetPid < ActiveRecord::Migration[4.2]
def change
change_table :projects do |t|
t.string :primary_publish_target_pid, null: true
2 changes: 1 addition & 1 deletion db/migrate/20161130002750_create_core_objects.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateCoreObjects < ActiveRecord::Migration
class CreateCoreObjects < ActiveRecord::Migration[4.2]
def change
# This no longer does anything. The logic here has been moved into a rake task.
end
2 changes: 1 addition & 1 deletion db/migrate/20161130150016_drop_publish_targets.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class DropPublishTargets < ActiveRecord::Migration
class DropPublishTargets < ActiveRecord::Migration[4.2]
def change
drop_table :publish_targets
end
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddPrerequisiteCsvRowNumberToDigitalObjectImports < ActiveRecord::Migration
class AddPrerequisiteCsvRowNumberToDigitalObjectImports < ActiveRecord::Migration[4.2]
def change
change_table(:digital_object_imports) do |t|
t.text :prerequisite_csv_row_numbers, null: true
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddFirstPublishedAtToDigitalObjectRecords < ActiveRecord::Migration
class AddFirstPublishedAtToDigitalObjectRecords < ActiveRecord::Migration[4.2]
def change
add_column :digital_object_records, :first_published_at, :datetime
end
2 changes: 1 addition & 1 deletion db/migrate/20180205120041_add_priority_to_import_jobs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddPriorityToImportJobs < ActiveRecord::Migration
class AddPriorityToImportJobs < ActiveRecord::Migration[4.2]
def change
change_table(:import_jobs) do |t|
t.integer :priority, null: false, index: true, default: 0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'securerandom'

class AddUuidAndDataFilePathToDigitalObjectRecords < ActiveRecord::Migration
class AddUuidAndDataFilePathToDigitalObjectRecords < ActiveRecord::Migration[4.2]
def change
change_table(:digital_object_records) do |t|
t.string :uuid, null: true, length: 36
2 changes: 1 addition & 1 deletion db/migrate/20180517175521_add_assignments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddAssignments < ActiveRecord::Migration
class AddAssignments < ActiveRecord::Migration[4.2]
def change
create_table :assignments do |t|
t.string :digital_object_pid, null: false
2 changes: 1 addition & 1 deletion db/migrate/20180523182439_add_assignment_blobs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddAssignmentBlobs < ActiveRecord::Migration
class AddAssignmentBlobs < ActiveRecord::Migration[4.2]
def change
change_table(:assignments) do |t|
t.text :original
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'securerandom'

class RemoveDataFilePathFromDigitalObjectRecords < ActiveRecord::Migration
class RemoveDataFilePathFromDigitalObjectRecords < ActiveRecord::Migration[4.2]
def change
remove_column :digital_object_records, :data_file_path
end
2 changes: 1 addition & 1 deletion db/migrate/20180703183628_add_archived_assignments.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddArchivedAssignments < ActiveRecord::Migration
class AddArchivedAssignments < ActiveRecord::Migration[4.2]
def change
create_table :archived_assignments do |t|
t.integer :original_assignment_id, null: false
2 changes: 1 addition & 1 deletion db/migrate/20180705141810_add_assignment_note.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddAssignmentNote < ActiveRecord::Migration
class AddAssignmentNote < ActiveRecord::Migration[4.2]
def change
change_table(:assignments) do |t|
t.text :note
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeAssignmentsColumnsToMediumText < ActiveRecord::Migration
class ChangeAssignmentsColumnsToMediumText < ActiveRecord::Migration[4.2]
def change
change_column :assignments, :original, :text, limit: 16.megabytes - 1
change_column :assignments, :proposed, :text, limit: 16.megabytes - 1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeArchivedAssignmentsColumnsToMediumText < ActiveRecord::Migration
class ChangeArchivedAssignmentsColumnsToMediumText < ActiveRecord::Migration[4.2]
def change
change_column :archived_assignments, :original, :text, limit: 16.megabytes - 1
change_column :archived_assignments, :proposed, :text, limit: 16.megabytes - 1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddAccessControlMetadataXmlStream < ActiveRecord::Migration
class AddAccessControlMetadataXmlStream < ActiveRecord::Migration[4.2]
def change
puts 'Creating authorization XmlDatastream...'
# Create XmlDatastreams
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddProhibitTempTermsToControlledVocabularies < ActiveRecord::Migration
class AddProhibitTempTermsToControlledVocabularies < ActiveRecord::Migration[4.2]
def change
change_table(:controlled_vocabularies) do |t|
t.boolean :prohibit_temp_terms, default: false, null: false
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddPerformDerivativeProcessingToDigitalObjectRecords < ActiveRecord::Migration
class AddPerformDerivativeProcessingToDigitalObjectRecords < ActiveRecord::Migration[4.2]
def change
change_table(:digital_object_records) do |t|
t.boolean :perform_derivative_processing, null: false, default: false