-
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
17 changed files
with
37 additions
and
61 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
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.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
8 changes: 2 additions & 6 deletions
8
spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.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,11 @@ | ||
class CreateManifestationCheckoutStats < ActiveRecord::Migration[5.2] | ||
def self.up | ||
create_table :manifestation_checkout_stats do |t| | ||
def change | ||
create_table :manifestation_checkout_stats, id: :uuid do |t| | ||
t.datetime :start_date | ||
t.datetime :end_date | ||
t.text :note | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :manifestation_checkout_stats | ||
end | ||
end |
8 changes: 2 additions & 6 deletions
8
spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.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,11 @@ | ||
class CreateUserCheckoutStats < ActiveRecord::Migration[5.2] | ||
def self.up | ||
create_table :user_checkout_stats do |t| | ||
def change | ||
create_table :user_checkout_stats, id: :uuid do |t| | ||
t.datetime :start_date | ||
t.datetime :end_date | ||
t.text :note | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :user_checkout_stats | ||
end | ||
end |
8 changes: 2 additions & 6 deletions
8
spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.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,11 @@ | ||
class CreateCheckoutStatHasUsers < ActiveRecord::Migration[5.2] | ||
def self.up | ||
def change | ||
create_table :checkout_stat_has_users do |t| | ||
t.references :user_checkout_stat, index: true, foreign_key: true, null: false | ||
t.references :user_checkout_stat, foreign_key: true, null: false, type: :uuid | ||
t.references :user, index: true, foreign_key: true, null: false | ||
t.integer :checkouts_count, default: 0, null: false | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :checkout_stat_has_users | ||
end | ||
end |
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.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
8 changes: 2 additions & 6 deletions
8
spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.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,11 @@ | ||
class CreateUserReserveStats < ActiveRecord::Migration[5.2] | ||
def self.up | ||
create_table :user_reserve_stats do |t| | ||
def change | ||
create_table :user_reserve_stats, id: :uuid do |t| | ||
t.datetime :start_date | ||
t.datetime :end_date | ||
t.text :note | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :user_reserve_stats | ||
end | ||
end |
8 changes: 2 additions & 6 deletions
8
spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.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,11 @@ | ||
class CreateReserveStatHasUsers < ActiveRecord::Migration[5.2] | ||
def self.up | ||
def change | ||
create_table :reserve_stat_has_users do |t| | ||
t.references :user_reserve_stat, index: true, foreign_key: true, null: false | ||
t.references :user_reserve_stat, foreign_key: true, null: false, type: :uuid | ||
t.references :user, index: true, foreign_key: true, null: false | ||
t.integer :reserves_count | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :reserve_stat_has_users | ||
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
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
2 changes: 1 addition & 1 deletion
2
spec/dummy/db/migrate/20181022070256_add_checkout_id_to_checkin.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,5 +1,5 @@ | ||
class AddCheckoutIdToCheckin < ActiveRecord::Migration[5.2] | ||
def change | ||
add_reference :checkins, :checkout, foreign_key: true, null: false | ||
add_reference :checkins, :checkout, foreign_key: true, null: false, type: :uuid | ||
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