mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 19:57:41 +00:00
- When creating a new company as an admin, a new database containing models for Runs, Grades, Results, Machines, and Oysters is migrated and created - When a user registers, they are automatically switched to their company's db in the server - When a user signs in they are also automatically swithched
10 lines
168 B
Ruby
10 lines
168 B
Ruby
class CreateMachines < ActiveRecord::Migration[5.0]
|
|
def change
|
|
create_table :machines do |t|
|
|
t.text :key, limit: 1000
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|