Displaying 2 results from an estimated 2 matches for "expreq".
Did you mean:
expres
2006 Jun 22
11
Help please
...ed_on_date) %></td>
</tr>
Here is the method in the controller:
def positionslist
@positions = (Position.find_all)
end
The model:
class Position < ActiveRecord::Base
belongs_to :category
belongs_to :contactmethod
belongs_to :edureq
belongs_to :expreq
belongs_to :postlength
belongs_to :securityclear
belongs_to :state
def self.find_all
find(:all)
end
end
Maybe something jumps out at someone ?
TIA
Stuart
2006 Jun 13
11
Question: Migration - multiple creates
I want to create a migration file that creates multiple tables, so i''m
guessing the correct format would be:
Can anyone confirm ? I''m guessing that each new create script requires a
seperate class so formatted this way. Perhaps I''m wrong.
TIA
Stuart
class CreateTable1 < ActiveRecord::Migration
def self.up
create_table :table1s do |t|
t.column :length,