mirror of
https://github.com/fspc/bike-database.git
synced 2026-09-16 08:31:39 -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
|
||||
@@ -1,78 +0,0 @@
|
||||
# encoding: UTF-8
|
||||
# This file is auto-generated from the current state of the database. Instead
|
||||
# of editing this file, please use the migrations feature of Active Record to
|
||||
# incrementally modify your database, and then regenerate this schema definition.
|
||||
#
|
||||
# Note that this schema.rb definition is the authoritative source for your
|
||||
# database schema. If you need to create the application database on another
|
||||
# system, you should be using db:schema:load, not running all the migrations
|
||||
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
||||
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20140814020954) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "bikes", force: true do |t|
|
||||
t.string "entry_date"
|
||||
t.string "brand"
|
||||
t.string "model"
|
||||
t.string "bike_type"
|
||||
t.string "color"
|
||||
t.string "frame_size"
|
||||
t.string "serial_number"
|
||||
t.text "notes"
|
||||
t.text "tag_info"
|
||||
t.string "completion_date"
|
||||
t.string "price"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
t.float "seat_tube_size"
|
||||
t.float "top_tube_size"
|
||||
t.integer "log_number"
|
||||
t.text "purpose"
|
||||
t.text "mechanic"
|
||||
end
|
||||
|
||||
create_table "users", force: true do |t|
|
||||
t.string "email", default: "", null: false
|
||||
t.string "encrypted_password", default: "", null: false
|
||||
t.string "reset_password_token"
|
||||
t.datetime "reset_password_sent_at"
|
||||
t.datetime "remember_created_at"
|
||||
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"
|
||||
t.datetime "created_at"
|
||||
t.datetime "updated_at"
|
||||
end
|
||||
|
||||
add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
|
||||
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
|
||||
|
||||
create_table "volunteers", force: true 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
|
||||
@@ -1,7 +0,0 @@
|
||||
# This file should contain all the record creation needed to seed the database with its default values.
|
||||
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
||||
#
|
||||
# Examples:
|
||||
#
|
||||
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
||||
# Mayor.create(name: 'Emanuel', city: cities.first)
|
||||
Reference in New Issue
Block a user