forked from masao/enju_loc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
95 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
class CreateDonates < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :donates do |t| | ||
t.integer :agent_id, null: false | ||
t.integer :item_id, null: false | ||
t.references :agent, foreign_key: true, null: false | ||
t.references :item, foreign_key: true, null: false | ||
|
||
t.timestamps | ||
end | ||
add_index :donates, :agent_id | ||
add_index :donates, :item_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
class CreateAgentMerges < ActiveRecord::Migration[5.2] | ||
def self.up | ||
def change | ||
create_table :agent_merges do |t| | ||
t.integer :agent_id, :agent_merge_list_id, null: false | ||
t.references :agent, foreign_key: true, null: false | ||
t.references :agent_merge_list, null: false | ||
|
||
t.timestamps | ||
end | ||
add_index :agent_merges, :agent_id | ||
add_index :agent_merges, :agent_merge_list_id | ||
end | ||
|
||
def self.down | ||
drop_table :agent_merges | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
spec/dummy/db/migrate/20080819181903_create_message_requests.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
class CreateSubscribes < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :subscribes do |t| | ||
t.references :subscription, index: true, null: false | ||
t.integer :work_id, null: false | ||
t.references :subscription, foreign_key: true, null: false | ||
t.references :work, foreign_key: {to_table: :manifestations}, null: false | ||
t.datetime :start_at, null: false | ||
t.datetime :end_at, null: false | ||
|
||
t.timestamps | ||
end | ||
add_index :subscribes, :work_id | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
class CreateManifestationRelationships < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :manifestation_relationships do |t| | ||
t.integer :parent_id | ||
t.integer :child_id | ||
t.integer :manifestation_relationship_type_id | ||
t.references :parent, foreign_key: {to_table: :manifestations}, null: false | ||
t.references :child, foreign_key: {to_table: :manifestations}, null: false | ||
t.references :manifestation_relationship_type, index: false | ||
|
||
t.timestamps | ||
end | ||
add_index :manifestation_relationships, :parent_id | ||
add_index :manifestation_relationships, :child_id | ||
end | ||
end |
8 changes: 3 additions & 5 deletions
8
spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
class CreateAgentRelationships < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :agent_relationships do |t| | ||
t.integer :parent_id | ||
t.integer :child_id | ||
t.integer :agent_relationship_type_id | ||
t.references :parent, foreign_key: {to_table: :agents}, null: false | ||
t.references :child, foreign_key: {to_table: :agents}, null: false | ||
t.references :agent_relationship_type, index: false | ||
|
||
t.timestamps | ||
end | ||
add_index :agent_relationships, :parent_id | ||
add_index :agent_relationships, :child_id | ||
end | ||
end |
9 changes: 3 additions & 6 deletions
9
spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
class CreateResourceImportResults < ActiveRecord::Migration[5.2] | ||
def change | ||
create_table :resource_import_results do |t| | ||
t.integer :resource_import_file_id | ||
t.integer :manifestation_id | ||
t.integer :item_id | ||
t.references :resource_import_file, foreign_key: true | ||
t.references :manifestation | ||
t.references :item | ||
t.text :body | ||
|
||
t.timestamps | ||
end | ||
add_index :resource_import_results, :resource_import_file_id | ||
add_index :resource_import_results, :manifestation_id | ||
add_index :resource_import_results, :item_id | ||
end | ||
end |
4 changes: 2 additions & 2 deletions
4
spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb
This file was deleted.
Oops, something went wrong.
9 changes: 2 additions & 7 deletions
9
spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
class AddManifestaitonIdToSeriesStatement < ActiveRecord::Migration[5.2] | ||
def self.up | ||
add_column :series_statements, :manifestation_id, :integer | ||
add_index :series_statements, :manifestation_id | ||
end | ||
|
||
def self.down | ||
remove_column :series_statements, :manifestation_id | ||
def change | ||
add_reference :series_statements, :manifestation, foreign_key: true | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
spec/dummy/db/migrate/20140518111006_create_message_transitions.rb
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
spec/dummy/db/migrate/20140518135713_create_message_request_transitions.rb
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.