-
Notifications
You must be signed in to change notification settings - Fork 1
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
288 changed files
with
1,136 additions
and
4,868 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
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
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,10 +1,17 @@ | ||
class CreateInventoryFiles < ActiveRecord::Migration[5.2] | ||
def change | ||
class CreateInventoryFiles < ActiveRecord::Migration[4.2] | ||
def self.up | ||
create_table :inventory_files do |t| | ||
t.references :user, foreign_key: true, null: false | ||
t.string :filename | ||
t.string :content_type | ||
t.integer :size | ||
t.references :user, index: true | ||
t.text :note | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :inventory_files | ||
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,11 +1,15 @@ | ||
class CreateInventories < ActiveRecord::Migration[5.2] | ||
def change | ||
class CreateInventories < ActiveRecord::Migration[4.2] | ||
def self.up | ||
create_table :inventories do |t| | ||
t.references :item, foreign_key: true | ||
t.references :inventory_file, foreign_key: true | ||
t.references :item, index: true | ||
t.references :inventory_file, index: true | ||
t.text :note | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :inventories | ||
end | ||
end |
15 changes: 15 additions & 0 deletions
15
db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class AddAttachmentsInventoryToInventoryFile < ActiveRecord::Migration[4.2] | ||
def self.up | ||
add_column :inventory_files, :inventory_file_name, :string | ||
add_column :inventory_files, :inventory_content_type, :string | ||
add_column :inventory_files, :inventory_file_size, :integer | ||
add_column :inventory_files, :inventory_updated_at, :datetime | ||
end | ||
|
||
def self.down | ||
remove_column :inventory_files, :inventory_file_name | ||
remove_column :inventory_files, :inventory_content_type | ||
remove_column :inventory_files, :inventory_file_size | ||
remove_column :inventory_files, :inventory_updated_at | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
db/migrate/20120413100431_add_fingerprint_to_inventory_file.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddFingerprintToInventoryFile < ActiveRecord::Migration[4.2] | ||
def change | ||
add_column :inventory_files, :inventory_fingerprint, :string | ||
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
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.