forked from OpenNeo/impress
Oops, should've used migration version 4.2
Oh I didn't realize the lowest version Rails had for this is 4.2. I wish running `rake db:migrate` checked this, but I'm running into it on another branch when I try to create a *new* migration which for some reason leads it to inspect the old migrations and notice the issue. Weird!
This commit is contained in:
parent
60284a87cc
commit
b2a027fbbf
57 changed files with 57 additions and 57 deletions
|
@ -1,4 +1,4 @@
|
|||
class CreateOutfits < ActiveRecord::Migration[3.2]
|
||||
class CreateOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :outfits do |t|
|
||||
t.integer :pet_state_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateItemOutfitRelationships < ActiveRecord::Migration[3.2]
|
||||
class CreateItemOutfitRelationships < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :item_outfit_relationships do |t|
|
||||
t.integer :item_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameAndStarredToOutfits < ActiveRecord::Migration[3.2]
|
||||
class AddNameAndStarredToOutfits < ActiveRecord::Migration[4.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[3.2]
|
||||
class TreatSoldInMallAsABoolean < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_column :objects, :sold_in_mall, :boolean, :null => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AllowNullForSomeObjectsFields < ActiveRecord::Migration[3.2]
|
||||
class AllowNullForSomeObjectsFields < ActiveRecord::Migration[4.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[3.2]
|
||||
class AddSwfAssetsTypeAndIdIndex < ActiveRecord::Migration[4.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[3.2]
|
||||
class UsersDevise < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_table :users do |t|
|
||||
t.rememberable
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class GuestOutfits < ActiveRecord::Migration[3.2]
|
||||
class GuestOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
change_column :outfits, :name, :string, :null => true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddHasImageToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddHasImageToSwfAssets < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :has_image, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageRequestedToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddImageRequestedToSwfAssets < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :swf_assets, :image_requested, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageModeTesterToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddImageModeTesterToUsers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :users, :image_mode_tester, :boolean, :default => false, :null => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateClosetHangers < ActiveRecord::Migration[3.2]
|
||||
class CreateClosetHangers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :closet_hangers do |t|
|
||||
t.integer :item_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class SetClosetHangersQuantityDefaultToZero < ActiveRecord::Migration[3.2]
|
||||
class SetClosetHangersQuantityDefaultToZero < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
end
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNeopetsUsernameToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddNeopetsUsernameToUsers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :users, :neopets_username, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddOwnedToClosetHangers < ActiveRecord::Migration[3.2]
|
||||
class AddOwnedToClosetHangers < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :closet_hangers, :owned, :boolean, :null => false, :default => true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateClosetLists < ActiveRecord::Migration[3.2]
|
||||
class CreateClosetLists < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :closet_lists do |t|
|
||||
t.string :name
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddClosetHangersVisibilityToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddClosetHangersVisibilityToUsers < ActiveRecord::Migration[4.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[3.2]
|
||||
class AddVisibilityToClosetLists < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :closet_lists, :visibility, :integer, :null => false, :default => 1
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddTimestampsToItems < ActiveRecord::Migration[3.2]
|
||||
class AddTimestampsToItems < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_timestamps :objects
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddConversionTimestampsToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddConversionTimestampsToSwfAssets < ActiveRecord::Migration[4.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[3.2]
|
||||
class RenameSwfAssetsIdToRemoteId < ActiveRecord::Migration[4.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[3.2]
|
||||
class AddImageToOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :outfits, :image, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexAssociations < ActiveRecord::Migration[3.2]
|
||||
class IndexAssociations < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_index :closet_hangers, :item_id
|
||||
add_index :closet_hangers, :list_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class IndexClosetHangerQuery < ActiveRecord::Migration[3.2]
|
||||
class IndexClosetHangerQuery < ActiveRecord::Migration[4.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[3.2]
|
||||
class IndexClosetHangerQuery2 < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
# SELECT `objects`.* FROM `objects`
|
||||
# INNER JOIN `item_outfit_relationships` ON
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddFemaleAndMoodAndUnconvertedAndLabeledToPetStates < ActiveRecord::Migration[3.2]
|
||||
class AddFemaleAndMoodAndUnconvertedAndLabeledToPetStates < ActiveRecord::Migration[4.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[3.2]
|
||||
class AddImageLayersHashToOutfit < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :outfits, :image_layers_hash, :string, :length => 8
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageEnqueuedToOutfits < ActiveRecord::Migration[3.2]
|
||||
class AddImageEnqueuedToOutfits < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :outfits, :image_enqueued, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddExplicitlyBodySpecificToObjects < ActiveRecord::Migration[3.2]
|
||||
class AddExplicitlyBodySpecificToObjects < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
add_column :objects, :explicitly_body_specific, :boolean, :null => false, :default => false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class TranslateItems < ActiveRecord::Migration[3.2]
|
||||
class TranslateItems < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
rename_table :objects, :items
|
||||
Item.create_translation_table!({
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateSpecies < ActiveRecord::Migration[3.2]
|
||||
class CreateSpecies < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :species
|
||||
Species.create_translation_table! :name => :string
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateColors < ActiveRecord::Migration[3.2]
|
||||
class CreateColors < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :colors do |t|
|
||||
t.boolean :basic
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateZones < ActiveRecord::Migration[3.2]
|
||||
class CreateZones < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
create_table :zones do |t|
|
||||
t.integer :depth
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration[3.2]
|
||||
class RemoveTranslatedFieldsFromItems < ActiveRecord::Migration[4.2]
|
||||
def self.up
|
||||
remove_column :items, :name
|
||||
remove_column :items, :description
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddGlitchedToPetStates < ActiveRecord::Migration[3.2]
|
||||
class AddGlitchedToPetStates < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :pet_states, :glitched, :boolean, null: false, default: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddImageManualToSwfAssets < ActiveRecord::Migration[3.2]
|
||||
class AddImageManualToSwfAssets < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :swf_assets, :image_manual, :boolean, null: false, default: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateNeopetsConnections < ActiveRecord::Migration[3.2]
|
||||
class CreateNeopetsConnections < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :neopets_connections do |t|
|
||||
t.integer :user_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddContactNeopetsConnectionIdToUsers < ActiveRecord::Migration[3.2]
|
||||
class AddContactNeopetsConnectionIdToUsers < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :users, :contact_neopets_connection_id, :integer
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPrankToColors < ActiveRecord::Migration[3.2]
|
||||
class AddPrankToColors < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :colors, :prank, :boolean, default: false, null: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddArtistNeopetsUsernameToPetState < ActiveRecord::Migration[3.2]
|
||||
class AddArtistNeopetsUsernameToPetState < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :pet_states, :artist_neopets_username, :string, null: true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateWardrobeTips < ActiveRecord::Migration[3.2]
|
||||
class CreateWardrobeTips < ActiveRecord::Migration[4.2]
|
||||
def up
|
||||
create_table :wardrobe_tips do |t|
|
||||
t.integer :index, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDonations < ActiveRecord::Migration[3.2]
|
||||
class CreateDonations < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :donations do |t|
|
||||
t.integer :amount, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateDonationFeatures < ActiveRecord::Migration[3.2]
|
||||
class CreateDonationFeatures < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :donation_features do |t|
|
||||
t.integer :donation_id, null: false
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddEmailToDonations < ActiveRecord::Migration[3.2]
|
||||
class AddEmailToDonations < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :donations, :donor_email, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateCampaigns < ActiveRecord::Migration[3.2]
|
||||
class CreateCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :campaigns do |t|
|
||||
t.integer :progress, null: false, default: 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddCampaignIdToDonation < ActiveRecord::Migration[3.2]
|
||||
class AddCampaignIdToDonation < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :donations, :campaign_id, :integer, null: false
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddAdvertisedToCampaign < ActiveRecord::Migration[3.2]
|
||||
class AddAdvertisedToCampaign < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :advertised, :boolean, null: false, default: true
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddDescriptionToCampaigns < ActiveRecord::Migration[3.2]
|
||||
class AddDescriptionToCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :description, :text, null: false, default: ''
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddNameToCampaigns < ActiveRecord::Migration[3.2]
|
||||
class AddNameToCampaigns < ActiveRecord::Migration[4.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[3.2]
|
||||
class AddThemeIdToCampaigns < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :theme_id, :string, null: false, default: 'hug'
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddBasicImageHashToPetTypes < ActiveRecord::Migration[3.2]
|
||||
class AddBasicImageHashToPetTypes < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :pet_types, :basic_image_hash, :string
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddThanksToCampaign < ActiveRecord::Migration[3.2]
|
||||
class AddThanksToCampaign < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :campaigns, :thanks, :text
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class CreateNewsPosts < ActiveRecord::Migration[3.2]
|
||||
class CreateNewsPosts < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
create_table :news_posts do |t|
|
||||
t.text :body
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class AddPurposeToCampaigns < ActiveRecord::Migration[3.2]
|
||||
class AddPurposeToCampaigns < ActiveRecord::Migration[4.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[3.2]
|
||||
class AddManualSpecialColorIdToItems < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
add_column :items, :manual_special_color_id, :integer
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropNewsPosts < ActiveRecord::Migration[3.2]
|
||||
class DropNewsPosts < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
drop_table :news_posts do |t|
|
||||
t.text :body
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class DropWardrobeTips < ActiveRecord::Migration[3.2]
|
||||
class DropWardrobeTips < ActiveRecord::Migration[4.2]
|
||||
def change
|
||||
drop_table :wardrobe_tips do |t|
|
||||
t.integer "index", null: false
|
||||
|
|
Loading…
Reference in a new issue