forked from OpenNeo/impress
Add Rails version to old migrations
I'm not sure it's literally true that they were all built against Rails 3.2, but that's what it was at before we upgraded, and like. that's probably fine
This commit is contained in:
parent
c7e81314eb
commit
fcf3292448
57 changed files with 57 additions and 57 deletions
|
@ -1,4 +1,4 @@
|
|||
class CreateOutfits < ActiveRecord::Migration
|
||||
class CreateOutfits < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
create_table :outfits do |t|
|
||||
t.integer :pet_state_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateItemOutfitRelationships < ActiveRecord::Migration
|
||||
class CreateItemOutfitRelationships < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
create_table :item_outfit_relationships do |t|
|
||||
t.integer :item_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameAndStarredToOutfits < ActiveRecord::Migration
|
||||
class AddNameAndStarredToOutfits < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :outfits, :name, :string, :null => false
|
||||
add_column :outfits, :starred, :boolean, :default => false, :null => false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class TreatSoldInMallAsABoolean < ActiveRecord::Migration
|
||||
class TreatSoldInMallAsABoolean < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
change_column :objects, :sold_in_mall, :boolean, :null => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AllowNullForSomeObjectsFields < ActiveRecord::Migration
|
||||
class AllowNullForSomeObjectsFields < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
change_column :objects, :category, :string, :limit => 50, :null => true
|
||||
change_column :objects, :type, :string, :limit => 50, :null => true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddSwfAssetsTypeAndIdIndex < ActiveRecord::Migration
|
||||
class AddSwfAssetsTypeAndIdIndex < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_index "swf_assets", ["type", "id"], :name => "swf_assets_type_and_id"
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class UsersDevise < ActiveRecord::Migration
|
||||
class UsersDevise < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
change_table :users do |t|
|
||||
t.rememberable
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class GuestOutfits < ActiveRecord::Migration
|
||||
class GuestOutfits < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
change_column :outfits, :name, :string, :null => true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddHasImageToSwfAssets < ActiveRecord::Migration
|
||||
class AddHasImageToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :has_image, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageRequestedToSwfAssets < ActiveRecord::Migration
|
||||
class AddImageRequestedToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :image_requested, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageModeTesterToUsers < ActiveRecord::Migration
|
||||
class AddImageModeTesterToUsers < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :users, :image_mode_tester, :boolean, :default => false, :null => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateClosetHangers < ActiveRecord::Migration
|
||||
class CreateClosetHangers < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
create_table :closet_hangers do |t|
|
||||
t.integer :item_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class SetClosetHangersQuantityDefaultToZero < ActiveRecord::Migration
|
||||
class SetClosetHangersQuantityDefaultToZero < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNeopetsUsernameToUsers < ActiveRecord::Migration
|
||||
class AddNeopetsUsernameToUsers < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :users, :neopets_username, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddOwnedToClosetHangers < ActiveRecord::Migration
|
||||
class AddOwnedToClosetHangers < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :closet_hangers, :owned, :boolean, :null => false, :default => true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateClosetLists < ActiveRecord::Migration
|
||||
class CreateClosetLists < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
create_table :closet_lists do |t|
|
||||
t.string :name
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddClosetHangersVisibilityToUsers < ActiveRecord::Migration
|
||||
class AddClosetHangersVisibilityToUsers < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :users, :owned_closet_hangers_visibility, :integer, :null => false, :default => 1
|
||||
add_column :users, :wanted_closet_hangers_visibility, :integer, :null => false, :default => 1
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddVisibilityToClosetLists < ActiveRecord::Migration
|
||||
class AddVisibilityToClosetLists < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :closet_lists, :visibility, :integer, :null => false, :default => 1
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddTimestampsToItems < ActiveRecord::Migration
|
||||
class AddTimestampsToItems < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_timestamps :objects
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddConversionTimestampsToSwfAssets < ActiveRecord::Migration
|
||||
class AddConversionTimestampsToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :reported_broken_at, :timestamp
|
||||
add_column :swf_assets, :converted_at, :timestamp
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RenameSwfAssetsIdToRemoteId < ActiveRecord::Migration
|
||||
class RenameSwfAssetsIdToRemoteId < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
rename_column :swf_assets, :id, :remote_id
|
||||
add_column :swf_assets, :id, :primary_key
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageToOutfits < ActiveRecord::Migration
|
||||
class AddImageToOutfits < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :outfits, :image, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexAssociations < ActiveRecord::Migration
|
||||
class IndexAssociations < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_index :closet_hangers, :item_id
|
||||
add_index :closet_hangers, :list_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexClosetHangerQuery < ActiveRecord::Migration
|
||||
class IndexClosetHangerQuery < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
# SELECT COUNT(DISTINCT `closet_hangers`.`id`) FROM `closet_hangers` INNER
|
||||
# JOIN `users` ON `users`.`id` = `closet_hangers`.`user_id` LEFT OUTER JOIN
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexClosetHangerQuery2 < ActiveRecord::Migration
|
||||
class IndexClosetHangerQuery2 < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
# SELECT `objects`.* FROM `objects`
|
||||
# INNER JOIN `item_outfit_relationships` ON
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddFemaleAndMoodAndUnconvertedAndLabeledToPetStates < ActiveRecord::Migration
|
||||
class AddFemaleAndMoodAndUnconvertedAndLabeledToPetStates < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :pet_states, :female, :boolean
|
||||
add_column :pet_states, :mood_id, :integer
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageLayersHashToOutfit < ActiveRecord::Migration
|
||||
class AddImageLayersHashToOutfit < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :outfits, :image_layers_hash, :string, :length => 8
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageEnqueuedToOutfits < ActiveRecord::Migration
|
||||
class AddImageEnqueuedToOutfits < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :outfits, :image_enqueued, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddExplicitlyBodySpecificToObjects < ActiveRecord::Migration
|
||||
class AddExplicitlyBodySpecificToObjects < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
add_column :objects, :explicitly_body_specific, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class TranslateItems < ActiveRecord::Migration
|
||||
class TranslateItems < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
rename_table :objects, :items
|
||||
Item.create_translation_table!({
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateSpecies < ActiveRecord::Migration
|
||||
class CreateSpecies < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
create_table :species
|
||||
Species.create_translation_table! :name => :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateColors < ActiveRecord::Migration
|
||||
class CreateColors < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
create_table :colors do |t|
|
||||
t.boolean :basic
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateZones < ActiveRecord::Migration
|
||||
class CreateZones < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
create_table :zones do |t|
|
||||
t.integer :depth
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration
|
||||
class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration[3.2]
|
||||
def self.up
|
||||
remove_column :items, :name
|
||||
remove_column :items, :description
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddGlitchedToPetStates < ActiveRecord::Migration
|
||||
class AddGlitchedToPetStates < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :pet_states, :glitched, :boolean, null: false, default: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageManualToSwfAssets < ActiveRecord::Migration
|
||||
class AddImageManualToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :swf_assets, :image_manual, :boolean, null: false, default: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateNeopetsConnections < ActiveRecord::Migration
|
||||
class CreateNeopetsConnections < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
create_table :neopets_connections do |t|
|
||||
t.integer :user_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddContactNeopetsConnectionIdToUsers < ActiveRecord::Migration
|
||||
class AddContactNeopetsConnectionIdToUsers < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :users, :contact_neopets_connection_id, :integer
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPrankToColors < ActiveRecord::Migration
|
||||
class AddPrankToColors < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :colors, :prank, :boolean, default: false, null: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddArtistNeopetsUsernameToPetState < ActiveRecord::Migration
|
||||
class AddArtistNeopetsUsernameToPetState < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :pet_states, :artist_neopets_username, :string, null: true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateWardrobeTips < ActiveRecord::Migration
|
||||
class CreateWardrobeTips < ActiveRecord::Migration[3.2]
|
||||
def up
|
||||
create_table :wardrobe_tips do |t|
|
||||
t.integer :index, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDonations < ActiveRecord::Migration
|
||||
class CreateDonations < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
create_table :donations do |t|
|
||||
t.integer :amount, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDonationFeatures < ActiveRecord::Migration
|
||||
class CreateDonationFeatures < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
create_table :donation_features do |t|
|
||||
t.integer :donation_id, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddEmailToDonations < ActiveRecord::Migration
|
||||
class AddEmailToDonations < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :donations, :donor_email, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateCampaigns < ActiveRecord::Migration
|
||||
class CreateCampaigns < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
create_table :campaigns do |t|
|
||||
t.integer :progress, null: false, default: 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddCampaignIdToDonation < ActiveRecord::Migration
|
||||
class AddCampaignIdToDonation < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :donations, :campaign_id, :integer, null: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddAdvertisedToCampaign < ActiveRecord::Migration
|
||||
class AddAdvertisedToCampaign < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :campaigns, :advertised, :boolean, null: false, default: true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDescriptionToCampaigns < ActiveRecord::Migration
|
||||
class AddDescriptionToCampaigns < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :campaigns, :description, :text, null: false, default: ''
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameToCampaigns < ActiveRecord::Migration
|
||||
class AddNameToCampaigns < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
# TODO: translations?
|
||||
add_column :campaigns, :name, :string, null: false, default: 'our hosting costs this year'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddThemeIdToCampaigns < ActiveRecord::Migration
|
||||
class AddThemeIdToCampaigns < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :campaigns, :theme_id, :string, null: false, default: 'hug'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddBasicImageHashToPetTypes < ActiveRecord::Migration
|
||||
class AddBasicImageHashToPetTypes < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :pet_types, :basic_image_hash, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddThanksToCampaign < ActiveRecord::Migration
|
||||
class AddThanksToCampaign < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :campaigns, :thanks, :text
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateNewsPosts < ActiveRecord::Migration
|
||||
class CreateNewsPosts < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
create_table :news_posts do |t|
|
||||
t.text :body
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPurposeToCampaigns < ActiveRecord::Migration
|
||||
class AddPurposeToCampaigns < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
# We're using the "name" column as a short campaign purpose phrase.
|
||||
# Let's name that "purpose" instead, and create a "name" column that we can
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddManualSpecialColorIdToItems < ActiveRecord::Migration
|
||||
class AddManualSpecialColorIdToItems < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
add_column :items, :manual_special_color_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropNewsPosts < ActiveRecord::Migration
|
||||
class DropNewsPosts < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
drop_table :news_posts do |t|
|
||||
t.text :body
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropWardrobeTips < ActiveRecord::Migration
|
||||
class DropWardrobeTips < ActiveRecord::Migration[3.2]
|
||||
def change
|
||||
drop_table :wardrobe_tips do |t|
|
||||
t.integer "index", null: false
|
||||
|
|
Loading…
Reference in a new issue