-
Notifications
You must be signed in to change notification settings - Fork 2
/
generate_app.sh
27 lines (26 loc) · 1.07 KB
/
generate_app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
# this script contains a history of all the rails generate commands used to build this app. They can be repeated
# individually if it is necessary to modify a model's attributes
#
bundle install
rails g model List start_time:datetime stop_time:datetime valve_id:integer --force
rails g scaffold Sprinkle start_time:datetime duration:integer time_input:string valve_id:integer \
state:integer --force
rails g model Valve name:string gpio_pin:integer active_history_id:integer cmd:integer --force
rails g scaffold WaterManager state:integer --force
rails g scaffold Porter host_name:string port_number:string --force
sh dev-bounce-db.sh
rails g hyperloop:install
rails g hyper:component App
rails g hyper:component HistoryList
rails g hyper:component HistoryRow
rails g hyper:component Layout
rails g hyper:component Navbar
rails g hyper:component PorterStatus
rails g hyper:component SprinkleList
rails g hyper:component SprinkleRow
rails g hyper:component TitleNav
rails g hyper:component ValveButton
rails g hyper:component ValveButtons
rails g hyper:component WaterStatus