-
-
Save anonymous/89409a59aa7db0b6897c to your computer and use it in GitHub Desktop.
.rb
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
class AddMonitors < ActiveRecord::Migration | |
def change | |
create_table :monitors do |t| | |
t.string :tag | |
t.timestamps null: false | |
# has_many :calibrations | |
end | |
end | |
end | |
class AddCalibrations < ActiveRecord::Migration | |
def change | |
create_table :calibrations do |t| | |
t.string :x_value | |
t.string :y_value | |
t.string :attempts | |
t.string :green | |
t.string :date | |
t.timestamps null: false | |
t.integer :monitor_id | |
#belongs_to :monitors | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment