search for: 001_add_first

Displaying 1 result from an estimated 1 matches for "001_add_first".

2006 May 31
4
Add 2 Records with Migrations. No errors. No new records.
...get any errors. The schema_info table is created and schema.rb is updated with ":version => 1". Can I not create records this way? When I load up script/console and put in the same code, it will create the records just fine. The Account and User model are already created. /db/migrate/001_add_first.rb ================================================ class AddFirst < ActiveRecord::Migration def self.up Account.create :name => "Company Inc.", :domain => "localhost", :subdomain => "" User.create :name => "Administrator", :username...