Displaying 1 result from an estimated 1 matches for "001_create_reports".
2008 Apr 23
2
Table Unknown - SCHEMA_INFO
...ird database which I wish to use, and thanks to
help from this group I''ve used Dr Nic''s Magic Models to get RoR
talking to the database.
However, I wish to create a new table ("reports") in this database,
and so generated the scaffold such that the file "db/migrate/
001_create_reports.rb" is as follows:
class CreateReports < ActiveRecord::Migration
def self.up
create_table :reports do |t|
t.string :name
t.string :description
t.string :location
t.timestamps
end
end
def self.down
drop_table :reports
end
end
When I attempt to m...