mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-23 07:34:08 +01:00
Upgraded to Rails 2.1. This can have wide ranging consequences, so please help track down any issues introduced by the upgrade. Requires environment.rb modifications.
Changes you will need to make: * In your environment.rb, you will need to update references to a few files per environment.rb.tmpl * In your environment.rb, you will need to specify the local time zone of the computer that is running your Tracks install. Other notes on my changes: * Modified our code to take advantage of Rails 2.1's slick time zone support. * Upgraded will_paginate for compatibility * Hacked the Selenium on Rails plugin, which has not been updated in some time and does not support Rails 2.1 * Verified that all tests pass on my machine, including Selenium tests -- I'd like confirmation from others, too.
This commit is contained in:
parent
f3bae73868
commit
901a58f8a3
1086 changed files with 51452 additions and 19526 deletions
15
vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
vendored
Normal file
15
vendor/rails/activerecord/test/migrations/decimal/1_give_me_big_numbers.rb
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class GiveMeBigNumbers < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :big_numbers do |table|
|
||||
table.column :bank_balance, :decimal, :precision => 10, :scale => 2
|
||||
table.column :big_bank_balance, :decimal, :precision => 15, :scale => 2
|
||||
table.column :world_population, :decimal, :precision => 10
|
||||
table.column :my_house_population, :decimal, :precision => 2
|
||||
table.column :value_of_e, :decimal
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table :big_numbers
|
||||
end
|
||||
end
|
||||
9
vendor/rails/activerecord/test/migrations/duplicate/1_people_have_last_names.rb
vendored
Normal file
9
vendor/rails/activerecord/test/migrations/duplicate/1_people_have_last_names.rb
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class PeopleHaveLastNames < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "people", "last_name", :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column "people", "last_name"
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/duplicate/2_we_need_reminders.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/duplicate/2_we_need_reminders.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class WeNeedReminders < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("reminders") do |t|
|
||||
t.column :content, :text
|
||||
t.column :remind_at, :datetime
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "reminders"
|
||||
end
|
||||
end
|
||||
7
vendor/rails/activerecord/test/migrations/duplicate/3_foo.rb
vendored
Normal file
7
vendor/rails/activerecord/test/migrations/duplicate/3_foo.rb
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Foo < ActiveRecord::Migration
|
||||
def self.up
|
||||
end
|
||||
|
||||
def self.down
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/duplicate/3_innocent_jointable.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/duplicate/3_innocent_jointable.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class InnocentJointable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("people_reminders", :id => false) do |t|
|
||||
t.column :reminder_id, :integer
|
||||
t.column :person_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "people_reminders"
|
||||
end
|
||||
end
|
||||
7
vendor/rails/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb
vendored
Normal file
7
vendor/rails/activerecord/test/migrations/duplicate_names/20080507052938_chunky.rb
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Chunky < ActiveRecord::Migration
|
||||
def self.up
|
||||
end
|
||||
|
||||
def self.down
|
||||
end
|
||||
end
|
||||
7
vendor/rails/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb
vendored
Normal file
7
vendor/rails/activerecord/test/migrations/duplicate_names/20080507053028_chunky.rb
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Chunky < ActiveRecord::Migration
|
||||
def self.up
|
||||
end
|
||||
|
||||
def self.down
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/interleaved/pass_1/3_innocent_jointable.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/interleaved/pass_1/3_innocent_jointable.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class InnocentJointable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("people_reminders", :id => false) do |t|
|
||||
t.column :reminder_id, :integer
|
||||
t.column :person_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "people_reminders"
|
||||
end
|
||||
end
|
||||
9
vendor/rails/activerecord/test/migrations/interleaved/pass_2/1_people_have_last_names.rb
vendored
Normal file
9
vendor/rails/activerecord/test/migrations/interleaved/pass_2/1_people_have_last_names.rb
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class PeopleHaveLastNames < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "people", "last_name", :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column "people", "last_name"
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/interleaved/pass_2/3_innocent_jointable.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/interleaved/pass_2/3_innocent_jointable.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class InnocentJointable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("people_reminders", :id => false) do |t|
|
||||
t.column :reminder_id, :integer
|
||||
t.column :person_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "people_reminders"
|
||||
end
|
||||
end
|
||||
9
vendor/rails/activerecord/test/migrations/interleaved/pass_3/1_people_have_last_names.rb
vendored
Normal file
9
vendor/rails/activerecord/test/migrations/interleaved/pass_3/1_people_have_last_names.rb
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class PeopleHaveLastNames < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "people", "last_name", :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column "people", "last_name"
|
||||
end
|
||||
end
|
||||
8
vendor/rails/activerecord/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb
vendored
Normal file
8
vendor/rails/activerecord/test/migrations/interleaved/pass_3/2_i_raise_on_down.rb
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class IRaiseOnDown < ActiveRecord::Migration
|
||||
def self.up
|
||||
end
|
||||
|
||||
def self.down
|
||||
raise
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/interleaved/pass_3/3_innocent_jointable.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/interleaved/pass_3/3_innocent_jointable.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class InnocentJointable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("people_reminders", :id => false) do |t|
|
||||
t.column :reminder_id, :integer
|
||||
t.column :person_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "people_reminders"
|
||||
end
|
||||
end
|
||||
9
vendor/rails/activerecord/test/migrations/missing/1000_people_have_middle_names.rb
vendored
Normal file
9
vendor/rails/activerecord/test/migrations/missing/1000_people_have_middle_names.rb
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class PeopleHaveMiddleNames < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "people", "middle_name", :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column "people", "middle_name"
|
||||
end
|
||||
end
|
||||
9
vendor/rails/activerecord/test/migrations/missing/1_people_have_last_names.rb
vendored
Normal file
9
vendor/rails/activerecord/test/migrations/missing/1_people_have_last_names.rb
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class PeopleHaveLastNames < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "people", "last_name", :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column "people", "last_name"
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/missing/3_we_need_reminders.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/missing/3_we_need_reminders.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class WeNeedReminders < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("reminders") do |t|
|
||||
t.column :content, :text
|
||||
t.column :remind_at, :datetime
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "reminders"
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/missing/4_innocent_jointable.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/missing/4_innocent_jointable.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class InnocentJointable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("people_reminders", :id => false) do |t|
|
||||
t.column :reminder_id, :integer
|
||||
t.column :person_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "people_reminders"
|
||||
end
|
||||
end
|
||||
9
vendor/rails/activerecord/test/migrations/valid/1_people_have_last_names.rb
vendored
Normal file
9
vendor/rails/activerecord/test/migrations/valid/1_people_have_last_names.rb
vendored
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
class PeopleHaveLastNames < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column "people", "last_name", :string
|
||||
end
|
||||
|
||||
def self.down
|
||||
remove_column "people", "last_name"
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/valid/2_we_need_reminders.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/valid/2_we_need_reminders.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class WeNeedReminders < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("reminders") do |t|
|
||||
t.column :content, :text
|
||||
t.column :remind_at, :datetime
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "reminders"
|
||||
end
|
||||
end
|
||||
12
vendor/rails/activerecord/test/migrations/valid/3_innocent_jointable.rb
vendored
Normal file
12
vendor/rails/activerecord/test/migrations/valid/3_innocent_jointable.rb
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class InnocentJointable < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table("people_reminders", :id => false) do |t|
|
||||
t.column :reminder_id, :integer
|
||||
t.column :person_id, :integer
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
drop_table "people_reminders"
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue