1
0
Fork 0

Cleaning up dates from most tables

This commit is contained in:
magnolia-fan 2011-09-26 02:46:40 +04:00
parent e46717af01
commit c883b7586c
10 changed files with 147 additions and 0 deletions

48
beathaven.tmproj Normal file
View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>currentDocument</key>
<string>app/controllers/artist_controller.rb</string>
<key>documents</key>
<array>
<dict>
<key>expanded</key>
<true/>
<key>name</key>
<string>beathaven</string>
<key>regexFolderFilter</key>
<string>!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$</string>
<key>sourceDirectory</key>
<string></string>
</dict>
</array>
<key>fileHierarchyDrawerWidth</key>
<integer>200</integer>
<key>metaData</key>
<dict>
<key>app/controllers/artist_controller.rb</key>
<dict>
<key>caret</key>
<dict>
<key>column</key>
<integer>62</integer>
<key>line</key>
<integer>91</integer>
</dict>
<key>firstVisibleColumn</key>
<integer>0</integer>
<key>firstVisibleLine</key>
<integer>54</integer>
</dict>
</dict>
<key>openDocuments</key>
<array>
<string>app/controllers/artist_controller.rb</string>
</array>
<key>showFileHierarchyDrawer</key>
<false/>
<key>windowFrame</key>
<string>{{0, 91}, {1280, 1327}}</string>
</dict>
</plist>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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