enju_subject 0.1.0.pre20 → 0.1.0.pre21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/enju_subject/version.rb +1 -1
- data/spec/controllers/classification_types_controller_spec.rb +1 -1
- data/spec/controllers/subject_heading_types_controller_spec.rb +1 -1
- data/spec/controllers/subject_types_controller_spec.rb +1 -1
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +8 -8
- data/spec/dummy/db/migrate/012_create_owns.rb +2 -2
- data/spec/dummy/db/migrate/015_create_creates.rb +2 -2
- data/spec/dummy/db/migrate/047_create_produces.rb +2 -2
- data/spec/dummy/db/migrate/125_create_donates.rb +2 -2
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +2 -2
- data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 20080905191442_create_agent_types.rb} +2 -2
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
- data/spec/dummy/db/migrate/{20090812151902_create_patron_relationship_types.rb → 20090812151902_create_agent_relationship_types.rb} +2 -2
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +2 -2
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/schema.rb +129 -127
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_23f +0 -0
- data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
- data/spec/fixtures/{patrons.yml → agents.yml} +39 -39
- metadata +35 -41
- data/spec/dummy/app/models/role.rb +0 -47
- data/spec/dummy/app/models/user_group.rb +0 -2
- data/spec/dummy/app/models/user_has_role.rb +0 -4
- data/spec/dummy/db/migrate/20081028083142_create_patron_import_files.rb +0 -22
- data/spec/dummy/db/migrate/20100606073747_create_patron_relationships.rb +0 -13
- data/spec/dummy/db/migrate/20100814091104_add_position_to_patron_relationship.rb +0 -11
- data/spec/dummy/db/migrate/20100925074559_create_patron_import_results.rb +0 -12
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_patron.rb +0 -11
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_patron_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_patron_import_file.rb +0 -5
- data/spec/dummy/db/migrate/20120415060323_rename_patron_import_file_imported_at_to_executed_at.rb +0 -9
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_patron_import_file.rb +0 -5
- data/spec/dummy/solr/data/test/index/segments_22n +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6cc4a0bb5b0879c10810de068dd7b674041fa8b3
|
4
|
+
data.tar.gz: f404c9f295bd22ab585646872a11ff62d1236cfc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bba35cb66060892245f485701f60533682e841ba3e57753cafff5e700036632ea1343b6834bbf9692e670f48c4741bbc752438101bd69e8362e9dc5c487745f1
|
7
|
+
data.tar.gz: 84480a0b8ef3259e4feaa04c7cd56a658a7fae15d2fdd1ef774b3e3d84ea3bea46a7145521ae9ae5374467999d7e6f2f97908885c864b5219d362bd1e795512c
|
data/lib/enju_subject/version.rb
CHANGED
@@ -184,7 +184,7 @@ describe ClassificationTypesController do
|
|
184
184
|
assigns(:classification_type).should be_valid
|
185
185
|
end
|
186
186
|
|
187
|
-
it "redirects to the created
|
187
|
+
it "redirects to the created agent" do
|
188
188
|
post :create, :classification_type => @attrs
|
189
189
|
response.should redirect_to(assigns(:classification_type))
|
190
190
|
end
|
@@ -184,7 +184,7 @@ describe SubjectHeadingTypesController do
|
|
184
184
|
assigns(:subject_heading_type).should be_valid
|
185
185
|
end
|
186
186
|
|
187
|
-
it "redirects to the created
|
187
|
+
it "redirects to the created agent" do
|
188
188
|
post :create, :subject_heading_type => @attrs
|
189
189
|
response.should redirect_to(assigns(:subject_heading_type))
|
190
190
|
end
|
@@ -186,7 +186,7 @@ describe SubjectTypesController do
|
|
186
186
|
assigns(:subject_type).should be_valid
|
187
187
|
end
|
188
188
|
|
189
|
-
it "redirects to the created
|
189
|
+
it "redirects to the created agent" do
|
190
190
|
post :create, :subject_type => @attrs
|
191
191
|
response.should redirect_to(assigns(:subject_type))
|
192
192
|
end
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class
|
1
|
+
class CreateAgents < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :agents do |t|
|
4
4
|
t.integer :user_id
|
5
5
|
t.string :last_name
|
6
6
|
t.string :middle_name
|
@@ -35,7 +35,7 @@ class CreatePatrons < ActiveRecord::Migration
|
|
35
35
|
t.datetime :date_of_death
|
36
36
|
t.integer :language_id, :default => 1, :null => false
|
37
37
|
t.integer :country_id, :default => 1, :null => false
|
38
|
-
t.integer :
|
38
|
+
t.integer :agent_type_id, :default => 1, :null => false
|
39
39
|
t.integer :lock_version, :default => 0, :null => false
|
40
40
|
t.text :note
|
41
41
|
t.integer :required_role_id, :default => 1, :null => false
|
@@ -44,10 +44,10 @@ class CreatePatrons < ActiveRecord::Migration
|
|
44
44
|
t.text :email
|
45
45
|
t.text :url
|
46
46
|
end
|
47
|
-
add_index :
|
48
|
-
add_index :
|
49
|
-
add_index :
|
50
|
-
add_index :
|
51
|
-
add_index :
|
47
|
+
add_index :agents, :user_id, :unique => true
|
48
|
+
add_index :agents, :language_id
|
49
|
+
add_index :agents, :country_id
|
50
|
+
add_index :agents, :required_role_id
|
51
|
+
add_index :agents, :full_name
|
52
52
|
end
|
53
53
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
class CreateOwns < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :owns do |t|
|
4
|
-
t.references :
|
4
|
+
t.references :agent, :null => false
|
5
5
|
t.references :item, :null => false
|
6
6
|
t.integer :position
|
7
7
|
t.timestamps
|
8
8
|
end
|
9
|
-
add_index :owns, :
|
9
|
+
add_index :owns, :agent_id
|
10
10
|
add_index :owns, :item_id
|
11
11
|
end
|
12
12
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
class CreateCreates < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :creates do |t|
|
4
|
-
t.references :
|
4
|
+
t.references :agent, :null => false
|
5
5
|
t.references :work, :null => false
|
6
6
|
t.integer :position
|
7
7
|
t.timestamps
|
8
8
|
end
|
9
|
-
add_index :creates, :
|
9
|
+
add_index :creates, :agent_id
|
10
10
|
add_index :creates, :work_id
|
11
11
|
end
|
12
12
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
class CreateProduces < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :produces do |t|
|
4
|
-
t.references :
|
4
|
+
t.references :agent, :null => false
|
5
5
|
t.references :manifestation, :null => false
|
6
6
|
t.integer :position
|
7
7
|
t.timestamps
|
8
8
|
end
|
9
|
-
add_index :produces, :
|
9
|
+
add_index :produces, :agent_id
|
10
10
|
add_index :produces, :manifestation_id
|
11
11
|
end
|
12
12
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
class CreateDonates < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :donates do |t|
|
4
|
-
t.integer :
|
4
|
+
t.integer :agent_id, :null => false
|
5
5
|
t.integer :item_id, :null => false
|
6
6
|
|
7
7
|
t.timestamps
|
8
8
|
end
|
9
|
-
add_index :donates, :
|
9
|
+
add_index :donates, :agent_id
|
10
10
|
add_index :donates, :item_id
|
11
11
|
end
|
12
12
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
class CreateRealizes < ActiveRecord::Migration
|
2
2
|
def change
|
3
3
|
create_table :realizes do |t|
|
4
|
-
t.references :
|
4
|
+
t.references :agent, :null => false
|
5
5
|
t.references :expression, :null => false
|
6
6
|
t.integer :position
|
7
7
|
|
8
8
|
t.timestamps
|
9
9
|
end
|
10
|
-
add_index :realizes, :
|
10
|
+
add_index :realizes, :agent_id
|
11
11
|
add_index :realizes, :expression_id
|
12
12
|
end
|
13
13
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class CreateAgentImportFiles < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :agent_import_files do |t|
|
4
|
+
t.integer :parent_id
|
5
|
+
t.string :content_type
|
6
|
+
t.integer :size
|
7
|
+
t.integer :user_id
|
8
|
+
t.text :note
|
9
|
+
t.datetime :executed_at
|
10
|
+
t.string :state
|
11
|
+
t.string :agent_import_file_name
|
12
|
+
t.string :agent_import_content_type
|
13
|
+
t.integer :agent_import_file_size
|
14
|
+
t.datetime :agent_import_updated_at
|
15
|
+
|
16
|
+
t.timestamps
|
17
|
+
end
|
18
|
+
add_index :agent_import_files, :parent_id
|
19
|
+
add_index :agent_import_files, :user_id
|
20
|
+
add_index :agent_import_files, :state
|
21
|
+
end
|
22
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
|
-
class
|
1
|
+
class CreateAgentRelationshipTypes < ActiveRecord::Migration
|
2
2
|
def change
|
3
|
-
create_table :
|
3
|
+
create_table :agent_relationship_types do |t|
|
4
4
|
t.string :name, :null => false
|
5
5
|
t.text :display_name
|
6
6
|
t.text :note
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class AddDcndlSchema < ActiveRecord::Migration
|
2
2
|
def self.up
|
3
3
|
add_column :manifestations, :title_alternative_transcription, :text
|
4
|
-
add_column :
|
4
|
+
add_column :agents, :full_name_alternative_transcription, :text
|
5
5
|
add_column :manifestations, :description, :text
|
6
6
|
add_column :manifestations, :abstract, :text
|
7
7
|
add_column :manifestations, :available_at, :timestamp
|
@@ -14,7 +14,7 @@ class AddDcndlSchema < ActiveRecord::Migration
|
|
14
14
|
|
15
15
|
def self.down
|
16
16
|
remove_column :manifestations, :title_alternative_transcription
|
17
|
-
remove_column :
|
17
|
+
remove_column :agents, :full_name_alternative_transcription
|
18
18
|
remove_column :manifestations, :description
|
19
19
|
remove_column :manifestations, :abstract
|
20
20
|
remove_column :manifestations, :available_at
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class CreateAgentRelationships < ActiveRecord::Migration
|
2
|
+
def change
|
3
|
+
create_table :agent_relationships do |t|
|
4
|
+
t.integer :parent_id
|
5
|
+
t.integer :child_id
|
6
|
+
t.integer :agent_relationship_type_id
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
add_index :agent_relationships, :parent_id
|
11
|
+
add_index :agent_relationships, :child_id
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class AddPositionToAgentRelationship < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
add_column :manifestation_relationships, :position, :integer
|
4
|
+
add_column :agent_relationships, :position, :integer
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.down
|
8
|
+
remove_column :agent_relationships, :position
|
9
|
+
remove_column :manifestation_relationships, :position
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class AddBirthDateAndDeathDateToAgent < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
add_column :agents, :birth_date, :string
|
4
|
+
add_column :agents, :death_date, :string
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.down
|
8
|
+
remove_column :agents, :death_date
|
9
|
+
remove_column :agents, :birth_date
|
10
|
+
end
|
11
|
+
end
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -24,6 +24,125 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
24
24
|
add_index "accepts", ["basket_id"], :name => "index_accepts_on_basket_id"
|
25
25
|
add_index "accepts", ["item_id"], :name => "index_accepts_on_item_id"
|
26
26
|
|
27
|
+
create_table "agent_import_files", :force => true do |t|
|
28
|
+
t.integer "parent_id"
|
29
|
+
t.string "content_type"
|
30
|
+
t.integer "size"
|
31
|
+
t.integer "user_id"
|
32
|
+
t.text "note"
|
33
|
+
t.datetime "executed_at"
|
34
|
+
t.string "state"
|
35
|
+
t.string "agent_import_file_name"
|
36
|
+
t.string "agent_import_content_type"
|
37
|
+
t.integer "agent_import_file_size"
|
38
|
+
t.datetime "agent_import_updated_at"
|
39
|
+
t.datetime "created_at", :null => false
|
40
|
+
t.datetime "updated_at", :null => false
|
41
|
+
t.string "agent_import_fingerprint"
|
42
|
+
t.text "error_message"
|
43
|
+
t.string "edit_mode"
|
44
|
+
end
|
45
|
+
|
46
|
+
add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
|
47
|
+
add_index "agent_import_files", ["state"], :name => "index_agent_import_files_on_state"
|
48
|
+
add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
|
49
|
+
|
50
|
+
create_table "agent_import_results", :force => true do |t|
|
51
|
+
t.integer "agent_import_file_id"
|
52
|
+
t.integer "agent_id"
|
53
|
+
t.integer "user_id"
|
54
|
+
t.text "body"
|
55
|
+
t.datetime "created_at", :null => false
|
56
|
+
t.datetime "updated_at", :null => false
|
57
|
+
end
|
58
|
+
|
59
|
+
create_table "agent_relationship_types", :force => true do |t|
|
60
|
+
t.string "name", :null => false
|
61
|
+
t.text "display_name"
|
62
|
+
t.text "note"
|
63
|
+
t.integer "position"
|
64
|
+
t.datetime "created_at", :null => false
|
65
|
+
t.datetime "updated_at", :null => false
|
66
|
+
end
|
67
|
+
|
68
|
+
create_table "agent_relationships", :force => true do |t|
|
69
|
+
t.integer "parent_id"
|
70
|
+
t.integer "child_id"
|
71
|
+
t.integer "agent_relationship_type_id"
|
72
|
+
t.datetime "created_at", :null => false
|
73
|
+
t.datetime "updated_at", :null => false
|
74
|
+
t.integer "position"
|
75
|
+
end
|
76
|
+
|
77
|
+
add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
|
78
|
+
add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
|
79
|
+
|
80
|
+
create_table "agent_types", :force => true do |t|
|
81
|
+
t.string "name", :null => false
|
82
|
+
t.text "display_name"
|
83
|
+
t.text "note"
|
84
|
+
t.integer "position"
|
85
|
+
t.datetime "created_at", :null => false
|
86
|
+
t.datetime "updated_at", :null => false
|
87
|
+
end
|
88
|
+
|
89
|
+
create_table "agents", :force => true do |t|
|
90
|
+
t.integer "user_id"
|
91
|
+
t.string "last_name"
|
92
|
+
t.string "middle_name"
|
93
|
+
t.string "first_name"
|
94
|
+
t.string "last_name_transcription"
|
95
|
+
t.string "middle_name_transcription"
|
96
|
+
t.string "first_name_transcription"
|
97
|
+
t.string "corporate_name"
|
98
|
+
t.string "corporate_name_transcription"
|
99
|
+
t.string "full_name"
|
100
|
+
t.text "full_name_transcription"
|
101
|
+
t.text "full_name_alternative"
|
102
|
+
t.datetime "created_at", :null => false
|
103
|
+
t.datetime "updated_at", :null => false
|
104
|
+
t.datetime "deleted_at"
|
105
|
+
t.string "zip_code_1"
|
106
|
+
t.string "zip_code_2"
|
107
|
+
t.text "address_1"
|
108
|
+
t.text "address_2"
|
109
|
+
t.text "address_1_note"
|
110
|
+
t.text "address_2_note"
|
111
|
+
t.string "telephone_number_1"
|
112
|
+
t.string "telephone_number_2"
|
113
|
+
t.string "fax_number_1"
|
114
|
+
t.string "fax_number_2"
|
115
|
+
t.text "other_designation"
|
116
|
+
t.text "place"
|
117
|
+
t.string "postal_code"
|
118
|
+
t.text "street"
|
119
|
+
t.text "locality"
|
120
|
+
t.text "region"
|
121
|
+
t.datetime "date_of_birth"
|
122
|
+
t.datetime "date_of_death"
|
123
|
+
t.integer "language_id", :default => 1, :null => false
|
124
|
+
t.integer "country_id", :default => 1, :null => false
|
125
|
+
t.integer "agent_type_id", :default => 1, :null => false
|
126
|
+
t.integer "lock_version", :default => 0, :null => false
|
127
|
+
t.text "note"
|
128
|
+
t.integer "required_role_id", :default => 1, :null => false
|
129
|
+
t.integer "required_score", :default => 0, :null => false
|
130
|
+
t.string "state"
|
131
|
+
t.text "email"
|
132
|
+
t.text "url"
|
133
|
+
t.text "full_name_alternative_transcription"
|
134
|
+
t.string "birth_date"
|
135
|
+
t.string "death_date"
|
136
|
+
t.string "agent_identifier"
|
137
|
+
end
|
138
|
+
|
139
|
+
add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
|
140
|
+
add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
|
141
|
+
add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
|
142
|
+
add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
|
143
|
+
add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
|
144
|
+
add_index "agents", ["user_id"], :name => "index_agents_on_user_id", :unique => true
|
145
|
+
|
27
146
|
create_table "baskets", :force => true do |t|
|
28
147
|
t.integer "user_id"
|
29
148
|
t.text "note"
|
@@ -126,7 +245,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
126
245
|
end
|
127
246
|
|
128
247
|
create_table "creates", :force => true do |t|
|
129
|
-
t.integer "
|
248
|
+
t.integer "agent_id", :null => false
|
130
249
|
t.integer "work_id", :null => false
|
131
250
|
t.integer "position"
|
132
251
|
t.datetime "created_at", :null => false
|
@@ -134,18 +253,18 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
134
253
|
t.integer "create_type_id"
|
135
254
|
end
|
136
255
|
|
137
|
-
add_index "creates", ["
|
256
|
+
add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
|
138
257
|
add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
|
139
258
|
|
140
259
|
create_table "donates", :force => true do |t|
|
141
|
-
t.integer "
|
260
|
+
t.integer "agent_id", :null => false
|
142
261
|
t.integer "item_id", :null => false
|
143
262
|
t.datetime "created_at", :null => false
|
144
263
|
t.datetime "updated_at", :null => false
|
145
264
|
end
|
146
265
|
|
266
|
+
add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
|
147
267
|
add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
|
148
|
-
add_index "donates", ["patron_id"], :name => "index_donates_on_patron_id"
|
149
268
|
|
150
269
|
create_table "exemplifies", :force => true do |t|
|
151
270
|
t.integer "manifestation_id", :null => false
|
@@ -425,132 +544,15 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
425
544
|
end
|
426
545
|
|
427
546
|
create_table "owns", :force => true do |t|
|
428
|
-
t.integer "
|
547
|
+
t.integer "agent_id", :null => false
|
429
548
|
t.integer "item_id", :null => false
|
430
549
|
t.integer "position"
|
431
550
|
t.datetime "created_at", :null => false
|
432
551
|
t.datetime "updated_at", :null => false
|
433
552
|
end
|
434
553
|
|
554
|
+
add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
|
435
555
|
add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
|
436
|
-
add_index "owns", ["patron_id"], :name => "index_owns_on_patron_id"
|
437
|
-
|
438
|
-
create_table "patron_import_files", :force => true do |t|
|
439
|
-
t.integer "parent_id"
|
440
|
-
t.string "content_type"
|
441
|
-
t.integer "size"
|
442
|
-
t.integer "user_id"
|
443
|
-
t.text "note"
|
444
|
-
t.datetime "executed_at"
|
445
|
-
t.string "state"
|
446
|
-
t.string "patron_import_file_name"
|
447
|
-
t.string "patron_import_content_type"
|
448
|
-
t.integer "patron_import_file_size"
|
449
|
-
t.datetime "patron_import_updated_at"
|
450
|
-
t.datetime "created_at", :null => false
|
451
|
-
t.datetime "updated_at", :null => false
|
452
|
-
t.string "patron_import_fingerprint"
|
453
|
-
t.text "error_message"
|
454
|
-
t.string "edit_mode"
|
455
|
-
end
|
456
|
-
|
457
|
-
add_index "patron_import_files", ["parent_id"], :name => "index_patron_import_files_on_parent_id"
|
458
|
-
add_index "patron_import_files", ["state"], :name => "index_patron_import_files_on_state"
|
459
|
-
add_index "patron_import_files", ["user_id"], :name => "index_patron_import_files_on_user_id"
|
460
|
-
|
461
|
-
create_table "patron_import_results", :force => true do |t|
|
462
|
-
t.integer "patron_import_file_id"
|
463
|
-
t.integer "patron_id"
|
464
|
-
t.integer "user_id"
|
465
|
-
t.text "body"
|
466
|
-
t.datetime "created_at", :null => false
|
467
|
-
t.datetime "updated_at", :null => false
|
468
|
-
end
|
469
|
-
|
470
|
-
create_table "patron_relationship_types", :force => true do |t|
|
471
|
-
t.string "name", :null => false
|
472
|
-
t.text "display_name"
|
473
|
-
t.text "note"
|
474
|
-
t.integer "position"
|
475
|
-
t.datetime "created_at", :null => false
|
476
|
-
t.datetime "updated_at", :null => false
|
477
|
-
end
|
478
|
-
|
479
|
-
create_table "patron_relationships", :force => true do |t|
|
480
|
-
t.integer "parent_id"
|
481
|
-
t.integer "child_id"
|
482
|
-
t.integer "patron_relationship_type_id"
|
483
|
-
t.datetime "created_at", :null => false
|
484
|
-
t.datetime "updated_at", :null => false
|
485
|
-
t.integer "position"
|
486
|
-
end
|
487
|
-
|
488
|
-
add_index "patron_relationships", ["child_id"], :name => "index_patron_relationships_on_child_id"
|
489
|
-
add_index "patron_relationships", ["parent_id"], :name => "index_patron_relationships_on_parent_id"
|
490
|
-
|
491
|
-
create_table "patron_types", :force => true do |t|
|
492
|
-
t.string "name", :null => false
|
493
|
-
t.text "display_name"
|
494
|
-
t.text "note"
|
495
|
-
t.integer "position"
|
496
|
-
t.datetime "created_at", :null => false
|
497
|
-
t.datetime "updated_at", :null => false
|
498
|
-
end
|
499
|
-
|
500
|
-
create_table "patrons", :force => true do |t|
|
501
|
-
t.integer "user_id"
|
502
|
-
t.string "last_name"
|
503
|
-
t.string "middle_name"
|
504
|
-
t.string "first_name"
|
505
|
-
t.string "last_name_transcription"
|
506
|
-
t.string "middle_name_transcription"
|
507
|
-
t.string "first_name_transcription"
|
508
|
-
t.string "corporate_name"
|
509
|
-
t.string "corporate_name_transcription"
|
510
|
-
t.string "full_name"
|
511
|
-
t.text "full_name_transcription"
|
512
|
-
t.text "full_name_alternative"
|
513
|
-
t.datetime "created_at", :null => false
|
514
|
-
t.datetime "updated_at", :null => false
|
515
|
-
t.datetime "deleted_at"
|
516
|
-
t.string "zip_code_1"
|
517
|
-
t.string "zip_code_2"
|
518
|
-
t.text "address_1"
|
519
|
-
t.text "address_2"
|
520
|
-
t.text "address_1_note"
|
521
|
-
t.text "address_2_note"
|
522
|
-
t.string "telephone_number_1"
|
523
|
-
t.string "telephone_number_2"
|
524
|
-
t.string "fax_number_1"
|
525
|
-
t.string "fax_number_2"
|
526
|
-
t.text "other_designation"
|
527
|
-
t.text "place"
|
528
|
-
t.string "postal_code"
|
529
|
-
t.text "street"
|
530
|
-
t.text "locality"
|
531
|
-
t.text "region"
|
532
|
-
t.datetime "date_of_birth"
|
533
|
-
t.datetime "date_of_death"
|
534
|
-
t.integer "language_id", :default => 1, :null => false
|
535
|
-
t.integer "country_id", :default => 1, :null => false
|
536
|
-
t.integer "patron_type_id", :default => 1, :null => false
|
537
|
-
t.integer "lock_version", :default => 0, :null => false
|
538
|
-
t.text "note"
|
539
|
-
t.integer "required_role_id", :default => 1, :null => false
|
540
|
-
t.integer "required_score", :default => 0, :null => false
|
541
|
-
t.string "state"
|
542
|
-
t.text "email"
|
543
|
-
t.text "url"
|
544
|
-
t.text "full_name_alternative_transcription"
|
545
|
-
t.string "birth_date"
|
546
|
-
t.string "death_date"
|
547
|
-
end
|
548
|
-
|
549
|
-
add_index "patrons", ["country_id"], :name => "index_patrons_on_country_id"
|
550
|
-
add_index "patrons", ["full_name"], :name => "index_patrons_on_full_name"
|
551
|
-
add_index "patrons", ["language_id"], :name => "index_patrons_on_language_id"
|
552
|
-
add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
|
553
|
-
add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
|
554
556
|
|
555
557
|
create_table "picture_files", :force => true do |t|
|
556
558
|
t.integer "picture_attachable_id"
|
@@ -581,7 +583,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
581
583
|
end
|
582
584
|
|
583
585
|
create_table "produces", :force => true do |t|
|
584
|
-
t.integer "
|
586
|
+
t.integer "agent_id", :null => false
|
585
587
|
t.integer "manifestation_id", :null => false
|
586
588
|
t.integer "position"
|
587
589
|
t.datetime "created_at", :null => false
|
@@ -589,8 +591,8 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
589
591
|
t.integer "produce_type_id"
|
590
592
|
end
|
591
593
|
|
594
|
+
add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
|
592
595
|
add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
|
593
|
-
add_index "produces", ["patron_id"], :name => "index_produces_on_patron_id"
|
594
596
|
|
595
597
|
create_table "realize_types", :force => true do |t|
|
596
598
|
t.string "name"
|
@@ -602,7 +604,7 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
602
604
|
end
|
603
605
|
|
604
606
|
create_table "realizes", :force => true do |t|
|
605
|
-
t.integer "
|
607
|
+
t.integer "agent_id", :null => false
|
606
608
|
t.integer "expression_id", :null => false
|
607
609
|
t.integer "position"
|
608
610
|
t.datetime "created_at", :null => false
|
@@ -610,8 +612,8 @@ ActiveRecord::Schema.define(:version => 20130509185724) do
|
|
610
612
|
t.integer "realize_type_id"
|
611
613
|
end
|
612
614
|
|
615
|
+
add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
|
613
616
|
add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
|
614
|
-
add_index "realizes", ["patron_id"], :name => "index_realizes_on_patron_id"
|
615
617
|
|
616
618
|
create_table "request_status_types", :force => true do |t|
|
617
619
|
t.string "name", :null => false
|