Displaying 1 result from an estimated 1 matches for "company_code".
2006 Jul 10
3
Problem with migrations
...st 3 migrations everything goes ok -
001
class CreateEmployees < ActiveRecord::Migration
def self.up
create_table :employees do |t|
t.column :employee_number, :integer
t.column :name, :string
t.column :location, :string
t.column :department, :integer
t.column :company_code, :string
end
end
def self.down
drop_table :employees
end
end
002
class AddEmployeeData < ActiveRecord::Migration
def self.up
Employee.create(
:employee_number => ''1234'',
:name => ''Bob B'',
:location => ...