mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 16:41:38 -04:00
move rails app into src/, add Vagrantfile & puppet/ assets and add src/.gitignore file
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
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
|
||||
@@ -1,6 +0,0 @@
|
||||
class CreateBikes < ActiveRecord::Migration
|
||||
def change
|
||||
add_column(:bikes, :created_at, :datetime)
|
||||
add_column(:bikes, :updated_at, :datetime)
|
||||
end
|
||||
end
|
||||
@@ -1,5 +0,0 @@
|
||||
class ChangeTypeToBicycleType < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column(:bikes, :type, :bike_type)
|
||||
end
|
||||
end
|
||||
@@ -1,13 +0,0 @@
|
||||
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
|
||||
@@ -1,23 +0,0 @@
|
||||
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
|
||||
@@ -1,42 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user