Louis | reverts fa110, which was branched instead

This commit is contained in:
Loos
2014-09-16 20:23:43 -04:00
parent fa110546c8
commit 3c8962fa49
228 changed files with 27 additions and 4656 deletions
@@ -0,0 +1,20 @@
class CreateBikeTable < ActiveRecord::Migration
def change
create_table :bikes do |t|
t.string :entry_date
t.string :brand
t.string :model
t.string :type
t.string :color
t.string :frame_size
t.boolean :freecyclery
t.boolean :sale
t.string :serial_number
t.text :notes
t.text :tag_info
t.string :repaired_by
t.string :completion_date
t.string :price
end
end
end
@@ -0,0 +1,6 @@
class CreateBikes < ActiveRecord::Migration
def change
add_column(:bikes, :created_at, :datetime)
add_column(:bikes, :updated_at, :datetime)
end
end
@@ -0,0 +1,5 @@
class ChangeTypeToBicycleType < ActiveRecord::Migration
def change
rename_column(:bikes, :type, :bike_type)
end
end
@@ -0,0 +1,13 @@
class AddFieldsToBike < ActiveRecord::Migration
def change
add_column :bikes, :seat_tube_size, :float
add_column :bikes, :top_tube_size, :float
add_column :bikes, :log_number, :int
add_column :bikes, :purpose, :text
add_column :bikes, :mechanic, :text
remove_column :bikes, :repaired_by
remove_column :bikes, :sale
remove_column :bikes, :freecyclery
end
end
@@ -0,0 +1,23 @@
class CreateVolunteers < ActiveRecord::Migration
def change
create_table :volunteers do |t|
t.string :name
t.string :email
t.string :phone
t.date :orientation_date
t.integer :other_volunteer_hours
t.text :referral
t.text :reason
t.text :skills
t.text :wants
t.boolean :interested_in_improving
t.boolean :available_weekends
t.boolean :available_weekdays
t.boolean :available_shorter_hours
t.boolean :available_longer_hours
t.boolean :flexible
t.text :questions
t.text :improve_orientation
end
end
end
@@ -0,0 +1,42 @@
class DeviseCreateUsers < ActiveRecord::Migration
def change
create_table(:users) do |t|
## Database authenticatable
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
## Recoverable
t.string :reset_password_token
t.datetime :reset_password_sent_at
## Rememberable
t.datetime :remember_created_at
## Trackable
t.integer :sign_in_count, default: 0, null: false
t.datetime :current_sign_in_at
t.datetime :last_sign_in_at
t.string :current_sign_in_ip
t.string :last_sign_in_ip
## Confirmable
# t.string :confirmation_token
# t.datetime :confirmed_at
# t.datetime :confirmation_sent_at
# t.string :unconfirmed_email # Only if using reconfirmable
## Lockable
# t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
# t.string :unlock_token # Only if unlock strategy is :email or :both
# t.datetime :locked_at
t.timestamps
end
add_index :users, :email, unique: true
add_index :users, :reset_password_token, unique: true
# add_index :users, :confirmation_token, unique: true
# add_index :users, :unlock_token, unique: true
end
end