Created
June 24, 2015 20:13
-
-
Save anonymous/d52d39421ba71c6fd28c to your computer and use it in GitHub Desktop.
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
# == Schema Information | |
# | |
# Table name: rules | |
# | |
# id :integer not null, primary key | |
# parent_id :integer | |
# landing_point_id :integer | |
# type :string(255) | |
# value :string(255) | |
# created_at :datetime | |
# updated_at :datetime | |
# field_name :string(255) | |
# operator :string(255) | |
# | |
# following is a record in the database | |
# #<Rule id: 3, parent_id: nil, landing_point_id: 123, type: nil, value: "jason", created_at: "2015-06-24 17:49:59", updated_at: "2015-06-24 17:49:59", field_name: "first_name", operator: "EQUAL"> | |
# notice that i from the record i want to create something like the following | |
# if first_name == 'jason' then do something | |
class Rule < ActiveRecord::Base | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment