This repository was archived by the owner on Mar 13, 2021. It is now read-only.
forked from pelensky/VRADbnb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rakefile created, db upgrade and migrate commands added
- Loading branch information
1 parent
07a5a53
commit e41f596
Showing
5 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ gem "bcrypt" | |
gem 'dm-postgres-adapter' | ||
gem 'database_cleaner' | ||
gem 'sinatra-flash' | ||
gem 'rake' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require './app/vradbnb.rb' | ||
|
||
namespace :db do | ||
desc "auto_upgrade! - Non destructive upgrade" | ||
task :auto_upgrade do | ||
DataMapper.auto_upgrade! | ||
puts "Auto-upgrade complete (no data loss)" | ||
end | ||
|
||
desc "auto_migrate! - Destructive upgrade" | ||
task :auto_migrate do | ||
DataMapper.auto_migrate! | ||
puts "Auto-migrate complete (data was lost)" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,12 +33,3 @@ | |
end | ||
|
||
end | ||
# | ||
# def sign_up(email: "[email protected]", password: "12345", password_confirmation: "12345" ) | ||
# visit '/signup' | ||
# expect(page.status_code).to eq(200) | ||
# fill_in :email, with: email | ||
# fill_in :password, with: password | ||
# fill_in :password_confirmation, with: password_confirmation | ||
# click_button "Sign Up" | ||
# end |