Displaying 1 result from an estimated 1 matches for "simulation_id".
2008 Jul 17
2
problems with validation on STI
I have the following STI table:
def self.up
create_table :distributions do |t|
t.string :type
t.integer :simulation_id
t.string :dist_name
t.string :desc, :default=> ''fixed''
t.float :param1, :default => 5.0
t.float :param2, :param3
t.timestamps
#fields for RscDist
t.integer :resource_id
#fields for LoadDist
t.integer :load_id
end...