From c883b7586ce6499ede646fcea95df00a40476b59 Mon Sep 17 00:00:00 2001 From: magnolia-fan Date: Mon, 26 Sep 2011 02:46:40 +0400 Subject: [PATCH] Cleaning up dates from most tables --- beathaven.tmproj | 48 +++++++++++++++++++ .../20110923113115_remove_dates_from_genre.rb | 11 +++++ .../20110923113149_remove_dates_from_style.rb | 11 +++++ ...923113200_remove_dates_from_album_genre.rb | 11 +++++ ...923113212_remove_dates_from_album_style.rb | 11 +++++ ...23113224_remove_dates_from_album_format.rb | 11 +++++ ...23113234_remove_dates_from_track_artist.rb | 11 +++++ ...23113245_remove_dates_from_artist_alias.rb | 11 +++++ ...923113256_remove_dates_from_artist_link.rb | 11 +++++ ...113307_remove_dates_from_release_format.rb | 11 +++++ 10 files changed, 147 insertions(+) create mode 100644 beathaven.tmproj create mode 100644 db/migrate/20110923113115_remove_dates_from_genre.rb create mode 100644 db/migrate/20110923113149_remove_dates_from_style.rb create mode 100644 db/migrate/20110923113200_remove_dates_from_album_genre.rb create mode 100644 db/migrate/20110923113212_remove_dates_from_album_style.rb create mode 100644 db/migrate/20110923113224_remove_dates_from_album_format.rb create mode 100644 db/migrate/20110923113234_remove_dates_from_track_artist.rb create mode 100644 db/migrate/20110923113245_remove_dates_from_artist_alias.rb create mode 100644 db/migrate/20110923113256_remove_dates_from_artist_link.rb create mode 100644 db/migrate/20110923113307_remove_dates_from_release_format.rb diff --git a/beathaven.tmproj b/beathaven.tmproj new file mode 100644 index 0000000..0aabf2e --- /dev/null +++ b/beathaven.tmproj @@ -0,0 +1,48 @@ + + + + + currentDocument + app/controllers/artist_controller.rb + documents + + + expanded + + name + beathaven + regexFolderFilter + !.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$ + sourceDirectory + + + + fileHierarchyDrawerWidth + 200 + metaData + + app/controllers/artist_controller.rb + + caret + + column + 62 + line + 91 + + firstVisibleColumn + 0 + firstVisibleLine + 54 + + + openDocuments + + app/controllers/artist_controller.rb + + showFileHierarchyDrawer + + windowFrame + {{0, 91}, {1280, 1327}} + + diff --git a/db/migrate/20110923113115_remove_dates_from_genre.rb b/db/migrate/20110923113115_remove_dates_from_genre.rb new file mode 100644 index 0000000..3ec9fa7 --- /dev/null +++ b/db/migrate/20110923113115_remove_dates_from_genre.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromGenre < ActiveRecord::Migration + def up + remove_column :genres, :created_at + remove_column :genres, :updated_at + end + + def down + add_column :genres, :updated_at, :datetime + add_column :genres, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113149_remove_dates_from_style.rb b/db/migrate/20110923113149_remove_dates_from_style.rb new file mode 100644 index 0000000..a9e4878 --- /dev/null +++ b/db/migrate/20110923113149_remove_dates_from_style.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromStyle < ActiveRecord::Migration + def up + remove_column :styles, :created_at + remove_column :styles, :updated_at + end + + def down + add_column :styles, :updated_at, :datetime + add_column :styles, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113200_remove_dates_from_album_genre.rb b/db/migrate/20110923113200_remove_dates_from_album_genre.rb new file mode 100644 index 0000000..09ed2d1 --- /dev/null +++ b/db/migrate/20110923113200_remove_dates_from_album_genre.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromAlbumGenre < ActiveRecord::Migration + def up + remove_column :album_genres, :created_at + remove_column :album_genres, :updated_at + end + + def down + add_column :album_genres, :updated_at, :datetime + add_column :album_genres, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113212_remove_dates_from_album_style.rb b/db/migrate/20110923113212_remove_dates_from_album_style.rb new file mode 100644 index 0000000..b3500b9 --- /dev/null +++ b/db/migrate/20110923113212_remove_dates_from_album_style.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromAlbumStyle < ActiveRecord::Migration + def up + remove_column :album_styles, :created_at + remove_column :album_styles, :updated_at + end + + def down + add_column :album_styles, :updated_at, :datetime + add_column :album_styles, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113224_remove_dates_from_album_format.rb b/db/migrate/20110923113224_remove_dates_from_album_format.rb new file mode 100644 index 0000000..041d59c --- /dev/null +++ b/db/migrate/20110923113224_remove_dates_from_album_format.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromAlbumFormat < ActiveRecord::Migration + def up + remove_column :album_formats, :created_at + remove_column :album_formats, :updated_at + end + + def down + add_column :album_formats, :updated_at, :datetime + add_column :album_formats, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113234_remove_dates_from_track_artist.rb b/db/migrate/20110923113234_remove_dates_from_track_artist.rb new file mode 100644 index 0000000..d26f2fb --- /dev/null +++ b/db/migrate/20110923113234_remove_dates_from_track_artist.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromTrackArtist < ActiveRecord::Migration + def up + remove_column :track_artists, :created_at + remove_column :track_artists, :updated_at + end + + def down + add_column :track_artists, :updated_at, :datetime + add_column :track_artists, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113245_remove_dates_from_artist_alias.rb b/db/migrate/20110923113245_remove_dates_from_artist_alias.rb new file mode 100644 index 0000000..e4dbcf6 --- /dev/null +++ b/db/migrate/20110923113245_remove_dates_from_artist_alias.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromArtistAlias < ActiveRecord::Migration + def up + remove_column :artist_aliases, :created_at + remove_column :artist_aliases, :updated_at + end + + def down + add_column :artist_aliases, :updated_at, :datetime + add_column :artist_aliases, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113256_remove_dates_from_artist_link.rb b/db/migrate/20110923113256_remove_dates_from_artist_link.rb new file mode 100644 index 0000000..0340c2f --- /dev/null +++ b/db/migrate/20110923113256_remove_dates_from_artist_link.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromArtistLink < ActiveRecord::Migration + def up + remove_column :artist_links, :created_at + remove_column :artist_links, :updated_at + end + + def down + add_column :artist_links, :updated_at, :datetime + add_column :artist_links, :created_at, :datetime + end +end diff --git a/db/migrate/20110923113307_remove_dates_from_release_format.rb b/db/migrate/20110923113307_remove_dates_from_release_format.rb new file mode 100644 index 0000000..617dac5 --- /dev/null +++ b/db/migrate/20110923113307_remove_dates_from_release_format.rb @@ -0,0 +1,11 @@ +class RemoveDatesFromReleaseFormat < ActiveRecord::Migration + def up + remove_column :release_formats, :created_at + remove_column :release_formats, :updated_at + end + + def down + add_column :release_formats, :updated_at, :datetime + add_column :release_formats, :created_at, :datetime + end +end