enju_manifestation_viewer 0.1.0.pre16 → 0.1.0.pre17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +8 -1
  3. data/lib/enju_manifestation_viewer/version.rb +1 -1
  4. data/spec/dummy/bin/bundle +3 -0
  5. data/spec/dummy/bin/rails +4 -0
  6. data/spec/dummy/bin/rake +4 -0
  7. data/spec/dummy/bin/setup +29 -0
  8. data/spec/dummy/config/database.yml +23 -18
  9. data/spec/dummy/config/environments/test.rb +1 -1
  10. data/spec/dummy/db/migrate/001_create_agents.rb +0 -3
  11. data/spec/dummy/db/migrate/002_devise_create_users.rb +46 -0
  12. data/spec/dummy/db/migrate/005_create_manifestations.rb +7 -8
  13. data/spec/dummy/db/migrate/006_create_items.rb +0 -3
  14. data/spec/dummy/db/migrate/041_create_roles.rb +13 -0
  15. data/spec/dummy/db/migrate/059_create_libraries.rb +28 -0
  16. data/spec/dummy/db/migrate/069_create_shelves.rb +15 -0
  17. data/spec/dummy/db/migrate/077_create_user_groups.rb +12 -0
  18. data/spec/dummy/db/migrate/080_create_library_groups.rb +17 -0
  19. data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
  20. data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
  21. data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
  22. data/spec/dummy/db/migrate/{20090719201843_create_extents.rb → 131_create_request_types.rb} +2 -2
  23. data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +17 -0
  24. data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +14 -0
  25. data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
  26. data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +0 -2
  27. data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -3
  28. data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +0 -1
  29. data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +9 -0
  30. data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +9 -0
  31. data/spec/dummy/db/migrate/{20111201163718_create_user_has_roles.rb → 20100606065209_create_user_has_roles.rb} +2 -0
  32. data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +0 -1
  33. data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +9 -0
  34. data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +11 -0
  35. data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +5 -0
  36. data/spec/dummy/db/migrate/{20111201121844_create_roles.rb → 20120129014038_create_budget_types.rb} +2 -2
  37. data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
  38. data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
  39. data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
  40. data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +16 -0
  41. data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +6 -0
  42. data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +18 -0
  43. data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +11 -0
  44. data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +20 -0
  45. data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +18 -0
  46. data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +18 -0
  47. data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +18 -0
  48. data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +18 -0
  49. data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +11 -0
  50. data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +11 -0
  51. data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +18 -0
  52. data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +5 -0
  53. data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +5 -0
  54. data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +5 -0
  55. data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +11 -0
  56. data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +18 -0
  57. data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +8 -0
  58. data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +5 -0
  59. data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +5 -0
  60. data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +5 -0
  61. data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +6 -0
  62. data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +5 -0
  63. data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +5 -0
  64. data/spec/dummy/db/migrate/20140821151023_create_colors.rb +14 -0
  65. data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +5 -0
  66. data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +5 -0
  67. data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +5 -0
  68. data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +9 -0
  69. data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +5 -0
  70. data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +5 -0
  71. data/spec/dummy/db/schema.rb +321 -122
  72. data/spec/fixtures/identifiers.yml +9 -3
  73. data/spec/fixtures/manifestations.yml +120 -120
  74. data/spec/helpers/book_jacket_helper_spec.rb +1 -1
  75. data/spec/spec_helper.rb +5 -0
  76. metadata +167 -63
  77. data/spec/dummy/db/migrate/029_create_subjects.rb +0 -27
  78. data/spec/dummy/db/migrate/142_create_classifications.rb +0 -19
  79. data/spec/dummy/db/migrate/143_create_subject_has_classifications.rb +0 -16
  80. data/spec/dummy/db/migrate/144_create_classification_types.rb +0 -16
  81. data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +0 -16
  82. data/spec/dummy/db/migrate/146_create_subject_types.rb +0 -16
  83. data/spec/dummy/db/migrate/20080606052544_create_work_has_subjects.rb +0 -18
  84. data/spec/dummy/db/migrate/20090208044541_create_subject_heading_type_has_subjects.rb +0 -16
  85. data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
  86. data/spec/dummy/db/migrate/20110618091240_add_periodical_to_series_statement.rb +0 -9
  87. data/spec/dummy/db/migrate/20110820131417_create_series_has_manifestations.rb +0 -13
  88. data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +0 -11
  89. data/spec/dummy/db/migrate/20110916053430_rename_manifestation_number_list_to_number_string.rb +0 -13
  90. data/spec/dummy/db/migrate/20111009183423_add_ndc_to_manifestation.rb +0 -9
  91. data/spec/dummy/db/migrate/20111201155456_create_users.rb +0 -13
  92. data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +0 -52
  93. data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +0 -5
  94. data/spec/dummy/db/migrate/20120415060308_rename_resource_import_file_imported_at_to_executed_at.rb +0 -9
  95. data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
  96. data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +0 -6
  97. data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +0 -6
  98. data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +0 -5
  99. data/spec/dummy/db/test.sqlite3 +0 -0
  100. data/spec/dummy/script/rails +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 72926db1200c3fc8cf291463afdbd368a61957b5
4
- data.tar.gz: 53db4a1e7ca668ce23ebf09e8e20f5359fcc50e4
3
+ metadata.gz: 546c7f2fe141ff1771d6cdc24a66878864e59537
4
+ data.tar.gz: fc1d28f02eb15dc1477fa53dd3d363b179da84f5
5
5
  SHA512:
6
- metadata.gz: 376b49f9d0b8b692aafb06dceaf305011596d3c36d8883703f0241cab1a2ca046e7ae835027af201dee32ed6af983618c62863601ea2fa12c997a7dedf812c17
7
- data.tar.gz: 12631513acbb1bdb99f2c5ee7335ab7323b5fe501dde80641ee21eb36fdf49e33b3eef5b4b2affc80542f1530aa455e6da220ad41580aca644928bc5aa9cd53d
6
+ metadata.gz: 7df2b4c336a88eec140c12abdfb2fb61ecfb44237002b4ed3982eced1f3dd1131f788a7eeec2f22201360d8af9cef3f6c2374432a7324f38857395fdbde5aef5
7
+ data.tar.gz: 8859932e6bbd234088df62959e1190a1380653e1ff07cb4dcd8b7090718c1ebb51daf3047beb6c52517394264212a93e8a8f9392da439e9a78d8dcbaa04cf640
data/README.rdoc CHANGED
@@ -1,3 +1,10 @@
1
1
  = EnjuManifestationViewer
2
+ {<img src="https://secure.travis-ci.org/next-l/enju_manifestation_viewer.png?branch=1.1" alt="Build Status" />}[http://travis-ci.org/next-l/enju_manifestation_viewer]
3
+ {<img src="https://coveralls.io/repos/next-l/enju_manifestation_viewer/badge.png?branch=1.1" alt="Coverage Status" />}[https://coveralls.io/r/next-l/enju_manifestation_viewer?branch=1.1]
4
+ {<img src="https://hakiri.io/github/next-l/enju_manifestation_viewer/1.1.svg" alt="security" />}[https://hakiri.io/github/next-l/enju_manifestation_viewer/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])
@@ -1,3 +1,3 @@
1
1
  module EnjuManifestationViewer
2
- VERSION = "0.1.0.pre16"
2
+ VERSION = "0.1.0.pre17"
3
3
  end
@@ -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,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
@@ -30,7 +30,7 @@ Dummy::Application.configure do
30
30
  config.action_mailer.delivery_method = :test
31
31
 
32
32
  # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
33
+ #config.active_record.mass_assignment_sanitizer = :strict
34
34
 
35
35
  # Print deprecation notices to the stderr
36
36
  config.active_support.deprecation = :stderr
@@ -1,7 +1,6 @@
1
1
  class CreateAgents < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :agents do |t|
4
- t.integer :user_id
5
4
  t.string :last_name
6
5
  t.string :middle_name
7
6
  t.string :first_name
@@ -40,11 +39,9 @@ class CreateAgents < ActiveRecord::Migration
40
39
  t.text :note
41
40
  t.integer :required_role_id, :default => 1, :null => false
42
41
  t.integer :required_score, :default => 0, :null => false
43
- t.string :state
44
42
  t.text :email
45
43
  t.text :url
46
44
  end
47
- add_index :agents, :user_id, :unique => true
48
45
  add_index :agents, :language_id
49
46
  add_index :agents, :country_id
50
47
  add_index :agents, :required_role_id
@@ -0,0 +1,46 @@
1
+ class DeviseCreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table(:users) do |t|
4
+ ## Database authenticatable
5
+ t.string :email, :null => false, :default => ""
6
+ t.string :encrypted_password, :null => false, :default => ""
7
+
8
+ ## Recoverable
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
11
+
12
+ ## Rememberable
13
+ t.datetime :remember_created_at
14
+
15
+ ## Trackable
16
+ t.integer :sign_in_count, :default => 0
17
+ t.datetime :current_sign_in_at
18
+ t.datetime :last_sign_in_at
19
+ t.string :current_sign_in_ip
20
+ t.string :last_sign_in_ip
21
+
22
+ ## Confirmable
23
+ # t.string :confirmation_token
24
+ # t.datetime :confirmed_at
25
+ # t.datetime :confirmation_sent_at
26
+ # t.string :unconfirmed_email # Only if using reconfirmable
27
+
28
+ ## Lockable
29
+ # t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts
30
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
31
+ # t.datetime :locked_at
32
+
33
+ ## Token authenticatable
34
+ # t.string :authentication_token
35
+
36
+
37
+ t.timestamps
38
+ end
39
+
40
+ add_index :users, :email, :unique => true
41
+ add_index :users, :reset_password_token, :unique => true
42
+ # add_index :users, :confirmation_token, :unique => true
43
+ # add_index :users, :unlock_token, :unique => true
44
+ # add_index :users, :authentication_token, :unique => true
45
+ end
46
+ end
@@ -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
@@ -21,24 +20,24 @@ class CreateManifestations < ActiveRecord::Migration
21
20
  t.integer :depth
22
21
  t.integer :price # TODO: 通貨単位
23
22
  t.text :fulltext
24
- t.string :volume_number_list
25
- t.string :issue_number_list
26
- t.string :serial_number_list
23
+ t.string :volume_number_string
24
+ t.string :issue_number_string
25
+ t.string :serial_number_string
27
26
  t.integer :edition
28
27
  t.text :note
29
28
  t.boolean :repository_content, :default => false, :null => false
30
29
  t.integer :lock_version, :default => 0, :null => false
31
30
  t.integer :required_role_id, :default => 1, :null => false
32
- t.string :state
33
31
  t.integer :required_score, :default => 0, :null => false
34
32
  t.integer :frequency_id, :default => 1, :null => false
35
33
  t.boolean :subscription_master, :default => false, :null => false
36
34
  end
37
- add_index :manifestations, :carrier_type_id
38
- add_index :manifestations, :required_role_id
35
+ #add_index :manifestations, :carrier_type_id
36
+ #add_index :manifestations, :required_role_id
39
37
  add_index :manifestations, :access_address
40
- add_index :manifestations, :frequency_id
38
+ #add_index :manifestations, :frequency_id
41
39
  add_index :manifestations, :manifestation_identifier
42
40
  add_index :manifestations, :updated_at
41
+ add_index :manifestations, :date_of_publication
43
42
  end
44
43
  end
@@ -1,7 +1,6 @@
1
1
  class CreateItems < ActiveRecord::Migration
2
2
  def change
3
3
  create_table :items do |t|
4
- #t.integer :manifestation_id
5
4
  t.string :call_number
6
5
  t.string :item_identifier
7
6
  t.timestamps
@@ -13,10 +12,8 @@ class CreateItems < ActiveRecord::Migration
13
12
  t.integer :price
14
13
  t.integer :lock_version, :default => 0, :null => false
15
14
  t.integer :required_role_id, :default => 1, :null => false
16
- t.string :state
17
15
  t.integer :required_score, :default => 0, :null => false
18
16
  end
19
- #add_index :items, :manifestation_id
20
17
  add_index :items, :shelf_id
21
18
  add_index :items, :item_identifier
22
19
  add_index :items, :required_role_id
@@ -0,0 +1,13 @@
1
+ class CreateRoles < ActiveRecord::Migration
2
+ def change
3
+ create_table "roles" do |t|
4
+ t.column :name, :string, :null => false
5
+ t.column :display_name, :string
6
+ t.column :note, :text
7
+ t.column :created_at, :datetime
8
+ t.column :updated_at, :datetime
9
+ t.integer :score, :default => 0, :null => false
10
+ t.integer :position
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,28 @@
1
+ class CreateLibraries < ActiveRecord::Migration
2
+ def change
3
+ create_table :libraries do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.string :short_display_name, :null => false
7
+ t.string :zip_code
8
+ t.text :street
9
+ t.text :locality
10
+ t.text :region
11
+ t.string :telephone_number_1
12
+ t.string :telephone_number_2
13
+ t.string :fax_number
14
+ t.text :note
15
+ t.integer :call_number_rows, :default => 1, :null => false
16
+ t.string :call_number_delimiter, :default => "|", :null => false
17
+ t.integer :library_group_id, :default => 1, :null => false
18
+ t.integer :users_count, :default => 0, :null => false
19
+ t.integer :position
20
+ t.integer :country_id
21
+
22
+ t.timestamps
23
+ t.datetime :deleted_at
24
+ end
25
+ add_index :libraries, :library_group_id
26
+ add_index :libraries, :name, :unique => true
27
+ end
28
+ end
@@ -0,0 +1,15 @@
1
+ class CreateShelves < ActiveRecord::Migration
2
+ def change
3
+ create_table :shelves do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :library_id, :default => 1, :null => false
8
+ t.integer :items_count, :default => 0, :null => false
9
+ t.integer :position
10
+ t.timestamps
11
+ t.datetime :deleted_at
12
+ end
13
+ add_index :shelves, :library_id
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ class CreateUserGroups < ActiveRecord::Migration
2
+ def change
3
+ create_table :user_groups do |t|
4
+ t.string :name, :not_null => true
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+ t.timestamps
9
+ t.datetime :deleted_at
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ class CreateLibraryGroups < ActiveRecord::Migration
2
+ def change
3
+ create_table :library_groups do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.string :short_name, :null => false
7
+ t.text :my_networks
8
+ t.text :login_banner
9
+ t.text :note
10
+ t.integer :country_id
11
+ t.integer :position
12
+
13
+ t.timestamps
14
+ end
15
+ add_index :library_groups, :short_name
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ class CreateBaskets < ActiveRecord::Migration
2
+ def change
3
+ create_table :baskets do |t|
4
+ t.integer :user_id
5
+ t.text :note
6
+ t.integer :lock_version, :default => 0, :null => false
7
+
8
+ t.timestamps
9
+ end
10
+ add_index :baskets, :user_id
11
+ end
12
+ end
@@ -0,0 +1,17 @@
1
+ class CreateBookstores < ActiveRecord::Migration
2
+ def change
3
+ create_table :bookstores do |t|
4
+ t.text :name, :null => false
5
+ t.string :zip_code
6
+ t.text :address
7
+ t.text :note
8
+ t.string :telephone_number
9
+ t.string :fax_number
10
+ t.string :url
11
+ t.integer :position
12
+ t.datetime :deleted_at
13
+
14
+ t.timestamps
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ class CreateRequestStatusTypes < ActiveRecord::Migration
2
+ def change
3
+ create_table :request_status_types do |t|
4
+ t.string :name, :null => false
5
+ t.text :display_name
6
+ t.text :note
7
+ t.integer :position
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -1,6 +1,6 @@
1
- class CreateExtents < ActiveRecord::Migration
1
+ class CreateRequestTypes < ActiveRecord::Migration
2
2
  def change
3
- create_table :extents do |t|
3
+ create_table :request_types do |t|
4
4
  t.string :name, :null => false
5
5
  t.text :display_name
6
6
  t.text :note
@@ -0,0 +1,17 @@
1
+ class CreateSubscriptions < ActiveRecord::Migration
2
+ def change
3
+ create_table :subscriptions do |t|
4
+ t.text :title, :null => false
5
+ t.text :note
6
+ #t.integer :subscription_list_id, :integer
7
+ t.integer :user_id
8
+ t.integer :order_list_id
9
+ t.datetime :deleted_at
10
+ t.integer :subscribes_count, :default => 0, :null => false
11
+
12
+ t.timestamps
13
+ end
14
+ add_index :subscriptions, :user_id
15
+ add_index :subscriptions, :order_list_id
16
+ end
17
+ end
@@ -0,0 +1,14 @@
1
+ class CreateSubscribes < ActiveRecord::Migration
2
+ def change
3
+ create_table :subscribes do |t|
4
+ t.integer :subscription_id, :null => false
5
+ t.integer :work_id, :null => false
6
+ t.datetime :start_at, :null => false
7
+ t.datetime :end_at, :null => false
8
+
9
+ t.timestamps
10
+ end
11
+ add_index :subscribes, :subscription_id
12
+ add_index :subscribes, :work_id
13
+ end
14
+ end