enju_inter_library_loan 0.1.0.pre10 → 0.1.0.pre11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +8 -1
  3. data/app/controllers/inter_library_loans_controller.rb +17 -16
  4. data/app/models/inter_library_loan.rb +6 -3
  5. data/app/models/inter_library_loan_transition.rb +1 -1
  6. data/db/migrate/20140607100507_create_inter_library_loan_transitions.rb +5 -1
  7. data/lib/enju_inter_library_loan/version.rb +1 -1
  8. data/spec/dummy/app/models/user.rb +0 -1
  9. data/spec/dummy/bin/bundle +3 -0
  10. data/spec/dummy/bin/rails +4 -0
  11. data/spec/dummy/bin/rake +4 -0
  12. data/spec/dummy/bin/setup +29 -0
  13. data/spec/dummy/config/boot.rb +2 -2
  14. data/spec/dummy/config/database.yml +23 -18
  15. data/spec/dummy/db/migrate/005_create_manifestations.rb +0 -1
  16. data/spec/dummy/db/migrate/133_create_agent_merges.rb +15 -0
  17. data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +13 -0
  18. data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
  19. data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +5 -1
  20. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +5 -1
  21. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +5 -1
  22. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +5 -1
  23. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +5 -1
  24. data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +5 -1
  25. data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +5 -1
  26. data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +5 -1
  27. data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +5 -1
  28. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +5 -1
  29. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +5 -1
  30. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  31. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  32. data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
  33. data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
  34. data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  35. data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  36. data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +6 -0
  37. data/spec/dummy/db/schema.rb +587 -565
  38. data/spec/fixtures/users.yml +1 -1
  39. data/spec/spec_helper.rb +2 -0
  40. metadata +67 -19
  41. data/spec/dummy/db/development.sqlite3 +0 -0
  42. data/spec/dummy/db/test.sqlite3 +0 -0
  43. data/spec/dummy/script/rails +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16ad98df1ff527548599f101ff13ec69078f2960
4
- data.tar.gz: 6faaceea2534561bb5de3b7ff471213a1cdbcaf1
3
+ metadata.gz: 65e0303bbd5ff4258673483151502b59bbec2c9c
4
+ data.tar.gz: 822719c78dcc0c2228b16a3de06fad8f1cd9d3ce
5
5
  SHA512:
6
- metadata.gz: 80640f160466d2f6c893e7b2291e1bab8034350305cbcfe9b34ec59b8265f9cd09f4d2044c878ef61a14791abeac32f26018f8a34886e764a82cf70814bdfe4d
7
- data.tar.gz: 0ef353d37ec37f50e36e3c19fdb5cf208d52b4145d40c5fd3a140c9cae89a8951e5ba0b83beb3cd18ad460e6a700e50ea4ea8c68c43a4de73c23acf1174d1e71
6
+ metadata.gz: 9c5205217df4646c79a9573680bca3409599509d950701488ccee819ea709814e9c536781c27df4755befedd3aa511b620fa5fa55d9940d3ab4b93524e14a731
7
+ data.tar.gz: 75876679a7b4a2e065ad5122914a98bacac8fd1e40749215d2b56e754e239315793334ca3b0dd023924a13d9e3ad61ed4cb389075546a0795c8f84731c2032ee
data/README.rdoc CHANGED
@@ -1,3 +1,10 @@
1
1
  = EnjuInterLibraryLoan
2
+ {<img src="https://secure.travis-ci.org/next-l/enju_inter_library_loan.png?branch=1.1" alt="Build Status" />}[http://travis-ci.org/next-l/enju_inter_library_loan]
3
+ {<img src="https://coveralls.io/repos/next-l/enju_inter_library_loan/badge.png?branch=1.1" alt="Coverage Status" />}[https://coveralls.io/r/next-l/enju_inter_library_loan?branch=1.1]
4
+ {<img src="https://hakiri.io/github/next-l/enju_inter_library_loan/1.1.svg" alt="security" />}[https://hakiri.io/github/next-l/enju_inter_library_loan/1.1]
2
5
 
3
- This project rocks and uses MIT-LICENSE.
6
+ This project rocks and uses MIT-LICENSE.
7
+
8
+ == 製作者・貢献者 (Authors and contributors)
9
+ * {TANABE, Kosuke}[https://github.com/nabeta] ({@nabeta}[https://twitter.com/nabeta])
10
+ * {Project Next-L}[http://www.next-l.jp] ({@ProjectNextL}[https://twitter.com/ProjectNextL])
@@ -14,7 +14,7 @@ class InterLibraryLoansController < ApplicationController
14
14
 
15
15
  respond_to do |format|
16
16
  format.html # index.html.erb
17
- format.json { render :json => @inter_library_loans }
17
+ format.json { render json: @inter_library_loans }
18
18
  format.rss { render :layout => false }
19
19
  format.atom
20
20
  end
@@ -27,7 +27,7 @@ class InterLibraryLoansController < ApplicationController
27
27
 
28
28
  respond_to do |format|
29
29
  format.html # show.html.erb
30
- format.json { render :json => @inter_library_loan }
30
+ format.json { render json: @inter_library_loan }
31
31
  end
32
32
  end
33
33
 
@@ -35,20 +35,18 @@ class InterLibraryLoansController < ApplicationController
35
35
  # GET /inter_library_loans/new.json
36
36
  def new
37
37
  @inter_library_loan = InterLibraryLoan.new
38
- @libraries = LibraryGroup.first.real_libraries
39
- @libraries.reject!{|library| library == current_user.library}
38
+ @libraries = Library.where('id != ?', current_user.profile.try(:library_id))
40
39
 
41
40
  respond_to do |format|
42
41
  format.html # new.html.erb
43
- format.json { render :json => @inter_library_loan }
42
+ format.json { render json: @inter_library_loan }
44
43
  end
45
44
  end
46
45
 
47
46
  # GET /inter_library_loans/1/edit
48
47
  def edit
49
48
  @inter_library_loan = InterLibraryLoan.find(params[:id])
50
- @libraries = LibraryGroup.first.real_libraries
51
- @libraries.reject!{|library| library == current_user.library}
49
+ @libraries = Library.where('id != ?', current_user.profile.try(:library_id))
52
50
  end
53
51
 
54
52
  # POST /inter_library_loans
@@ -63,12 +61,11 @@ class InterLibraryLoansController < ApplicationController
63
61
  @inter_library_loan.sm_request!
64
62
  flash[:notice] = t('controller.successfully_created', :model => t('activerecord.models.inter_library_loan'))
65
63
  format.html { redirect_to(@inter_library_loan) }
66
- format.json { render :json => @inter_library_loan, :status => :created, :location => @inter_library_loan }
64
+ format.json { render json: @inter_library_loan, :status => :created, :location => @inter_library_loan }
67
65
  else
68
- @libraries = LibraryGroup.first.real_libraries
69
- @libraries.reject!{|library| library == current_user.library}
70
- format.html { render :action => "new" }
71
- format.json { render :json => @inter_library_loan.errors, :status => :unprocessable_entity }
66
+ @libraries = Library.where('id != ?', current_user.profile.try(:library_id))
67
+ format.html { render action: "new" }
68
+ format.json { render json: @inter_library_loan.errors, :status => :unprocessable_entity }
72
69
  end
73
70
  end
74
71
  end
@@ -98,10 +95,9 @@ class InterLibraryLoansController < ApplicationController
98
95
  format.json { head :no_content }
99
96
  else
100
97
  @inter_library_loan.item = @item
101
- @libraries = LibraryGroup.first.real_libraries
102
- @libraries.reject!{|library| library == current_user.library}
103
- format.html { render :action => "edit" }
104
- format.json { render :json => @inter_library_loan.errors, :status => :unprocessable_entity }
98
+ @libraries = Library.where('id != ?', current_user.profile.try(:library_id))
99
+ format.html { render action: "edit" }
100
+ format.json { render json: @inter_library_loan.errors, :status => :unprocessable_entity }
105
101
  end
106
102
  end
107
103
  end
@@ -122,4 +118,9 @@ class InterLibraryLoansController < ApplicationController
122
118
  end
123
119
  end
124
120
  end
121
+
122
+ private
123
+ def inter_library_loan_params
124
+ params.require(:inter_library_loan).permit(:item_id, :borrowing_library_id)
125
+ end
125
126
  end
@@ -1,8 +1,7 @@
1
1
  class InterLibraryLoan < ActiveRecord::Base
2
- include Statesman::Adapters::ActiveRecordModel
3
- attr_accessible :item_id, :borrowing_library_id
2
+ include Statesman::Adapters::ActiveRecordQueries
4
3
  scope :completed, -> {in_state(:return_received)}
5
- scope :processing, lambda {|item, borrowing_library| {:conditions => ['item_id = ? AND borrowing_library_id = ?', item.id, borrowing_library.id]}}
4
+ scope :processing, lambda {|item, borrowing_library| where('item_id = ? AND borrowing_library_id = ?', item.id, borrowing_library.id)}
6
5
 
7
6
  belongs_to :item, validate: true
8
7
  #belongs_to :reserve
@@ -74,6 +73,10 @@ class InterLibraryLoan < ActiveRecord::Base
74
73
  def self.transition_class
75
74
  InterLibraryLoanTransition
76
75
  end
76
+
77
+ def self.initial_state
78
+ OrderStateMachine.initial_state
79
+ end
77
80
  end
78
81
 
79
82
  # == Schema Information
@@ -3,7 +3,7 @@ class InterLibraryLoanTransition < ActiveRecord::Base
3
3
 
4
4
 
5
5
  belongs_to :inter_library_loan, inverse_of: :inter_library_loan_transitions
6
- attr_accessible :to_state, :sort_key, :metadata
6
+ #attr_accessible :to_state, :sort_key, :metadata
7
7
  end
8
8
 
9
9
  # == Schema Information
@@ -2,7 +2,11 @@ class CreateInterLibraryLoanTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :inter_library_loan_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :inter_library_loan_id
8
12
  t.timestamps
@@ -1,3 +1,3 @@
1
1
  module EnjuInterLibraryLoan
2
- VERSION = "0.1.0.pre10"
2
+ VERSION = "0.1.0.pre11"
3
3
  end
@@ -5,7 +5,6 @@ class User < ActiveRecord::Base
5
5
  :recoverable, :rememberable, :trackable, :validatable
6
6
 
7
7
  # Setup accessible (or protected) attributes for your model
8
- attr_accessible :email, :password, :password_confirmation, :remember_me
9
8
 
10
9
  enju_leaf_user_model
11
10
  enju_circulation_user_model
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
+ load Gem.bin_path('bundler', 'bundle')
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
3
+ require_relative '../config/boot'
4
+ require 'rails/commands'
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require_relative '../config/boot'
3
+ require 'rake'
4
+ Rake.application.run
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env ruby
2
+ require 'pathname'
3
+
4
+ # path to your application root.
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
+
7
+ Dir.chdir APP_ROOT do
8
+ # This script is a starting point to setup your application.
9
+ # Add necessary setup steps to this file:
10
+
11
+ puts "== Installing dependencies =="
12
+ system "gem install bundler --conservative"
13
+ system "bundle check || bundle install"
14
+
15
+ # puts "\n== Copying sample files =="
16
+ # unless File.exist?("config/database.yml")
17
+ # system "cp config/database.yml.sample config/database.yml"
18
+ # end
19
+
20
+ puts "\n== Preparing database =="
21
+ system "bin/rake db:setup"
22
+
23
+ puts "\n== Removing old logs and tempfiles =="
24
+ system "rm -f log/*"
25
+ system "rm -rf tmp/cache"
26
+
27
+ puts "\n== Restarting application server =="
28
+ system "touch tmp/restart.txt"
29
+ end
@@ -1,5 +1,5 @@
1
1
  require 'rubygems'
2
- gemfile = File.expand_path('../../../../Gemfile', __FILE__)
2
+ gemfile = ENV['BUNDLE_GEMFILE'] || File.expand_path('../../../../Gemfile', __FILE__)
3
3
 
4
4
  if File.exist?(gemfile)
5
5
  ENV['BUNDLE_GEMFILE'] = gemfile
@@ -7,4 +7,4 @@ if File.exist?(gemfile)
7
7
  Bundler.setup
8
8
  end
9
9
 
10
- $:.unshift File.expand_path('../../../../lib', __FILE__)
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,25 +1,30 @@
1
- # SQLite version 3.x
2
- # gem install sqlite3
3
- #
4
- # Ensure the SQLite 3 gem is defined in your Gemfile
5
- # gem 'sqlite3'
6
- development:
1
+ sqlite: &sqlite
7
2
  adapter: sqlite3
8
- database: db/development.sqlite3
3
+ database: db/<%= Rails.env %>.sqlite3
4
+
5
+ mysql: &mysql
6
+ adapter: mysql2
7
+ username: root
8
+ password:
9
+ database: enju_<%= Rails.env %>
10
+
11
+ postgresql: &postgresql
12
+ adapter: postgresql
13
+ username: postgres
14
+ password:
15
+ database: enju_<%= Rails.env %>
16
+
17
+ defaults: &defaults
9
18
  pool: 5
10
19
  timeout: 5000
20
+ host: localhost
21
+ <<: *<%= ENV['DB'] || "sqlite" %>
22
+
23
+ development:
24
+ <<: *defaults
11
25
 
12
- # Warning: The database defined as "test" will be erased and
13
- # re-generated from your development database when you run "rake".
14
- # Do not set this db to the same as development or production.
15
26
  test:
16
- adapter: sqlite3
17
- database: db/test.sqlite3
18
- pool: 5
19
- timeout: 5000
27
+ <<: *defaults
20
28
 
21
29
  production:
22
- adapter: sqlite3
23
- database: db/production.sqlite3
24
- pool: 5
25
- timeout: 5000
30
+ <<: *defaults
@@ -13,7 +13,6 @@ class CreateManifestations < ActiveRecord::Migration
13
13
  t.string :access_address
14
14
  t.integer :language_id, :default => 1, :null => false
15
15
  t.integer :carrier_type_id, :default => 1, :null => false
16
- t.integer :extent_id, :default => 1, :null => false
17
16
  t.integer :start_page
18
17
  t.integer :end_page
19
18
  t.integer :height
@@ -0,0 +1,15 @@
1
+ class CreateAgentMerges < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :agent_merges do |t|
4
+ t.integer :agent_id, :agent_merge_list_id, :null => false
5
+
6
+ t.timestamps
7
+ end
8
+ add_index :agent_merges, :agent_id
9
+ add_index :agent_merges, :agent_merge_list_id
10
+ end
11
+
12
+ def self.down
13
+ drop_table :agent_merges
14
+ end
15
+ end
@@ -0,0 +1,13 @@
1
+ class CreateAgentMergeLists < ActiveRecord::Migration
2
+ def self.up
3
+ create_table :agent_merge_lists do |t|
4
+ t.string :title
5
+
6
+ t.timestamps
7
+ end
8
+ end
9
+
10
+ def self.down
11
+ drop_table :agent_merge_lists
12
+ end
13
+ end
@@ -7,6 +7,6 @@ class CreateSeriesStatementMerges < ActiveRecord::Migration
7
7
  t.timestamps
8
8
  end
9
9
  add_index :series_statement_merges, :series_statement_id
10
- add_index :series_statement_merges, :series_statement_merge_list_id
10
+ add_index :series_statement_merges, :series_statement_merge_list_id, name: "index_series_statement_merges_on_list_id"
11
11
  end
12
12
  end
@@ -2,7 +2,11 @@ class CreateReserveTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :reserve_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :reserve_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateResourceImportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :resource_import_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :resource_import_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateImportRequestTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :import_request_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :import_request_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateAgentImportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :agent_import_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :agent_import_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserImportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_import_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_import_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserCheckoutStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_checkout_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_checkout_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserReserveStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_reserve_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_reserve_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateManifestationCheckoutStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :manifestation_checkout_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :manifestation_checkout_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateManifestationReserveStatTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :manifestation_reserve_stat_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :manifestation_reserve_stat_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateResourceExportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :resource_export_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :resource_export_file_id
8
12
  t.timestamps
@@ -2,7 +2,11 @@ class CreateUserExportFileTransitions < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :user_export_file_transitions do |t|
4
4
  t.string :to_state
5
- t.text :metadata, default: "{}"
5
+ if ActiveRecord::Base.configurations[Rails.env]["adapter"].try(:match, /mysql/)
6
+ t.text :metadata
7
+ else
8
+ t.text :metadata, default: "{}"
9
+ end
6
10
  t.integer :sort_key
7
11
  t.integer :user_export_file_id
8
12
  t.timestamps
@@ -0,0 +1,5 @@
1
+ class AddErrorMessageToResourceImportResult < ActiveRecord::Migration
2
+ def change
3
+ add_column :resource_import_results, :error_message, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddExtentToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :extent, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDimensionsToManifestation < ActiveRecord::Migration
2
+ def change
3
+ add_column :manifestations, :dimensions, :text
4
+ end
5
+ end
@@ -0,0 +1,9 @@
1
+ class RenameManifestationPeriodicalToSerial < ActiveRecord::Migration
2
+ def up
3
+ rename_column :manifestations, :periodical, :serial
4
+ end
5
+
6
+ def down
7
+ rename_column :manifestations, :serial, :periodical
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ class AddFullNameTranscriptionToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :full_name_transcription, :text
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ class AddDateOfBirthToProfile < ActiveRecord::Migration
2
+ def change
3
+ add_column :profiles, :date_of_birth, :datetime
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ class AddShelfIdToCheckout < ActiveRecord::Migration
2
+ def change
3
+ add_column :checkouts, :shelf_id, :integer
4
+ add_index :checkouts, :shelf_id
5
+ end
6
+ end