Skip to content

Instantly share code, notes, and snippets.

/.rb Secret

Created April 10, 2015 23:20
Show Gist options
  • Save anonymous/89409a59aa7db0b6897c to your computer and use it in GitHub Desktop.
Save anonymous/89409a59aa7db0b6897c to your computer and use it in GitHub Desktop.
.rb
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