I have created the following migrationg by using:
“ruby script/generate migration AddFirst”
But when I run: “rake migrate” it doesn’t add these two records. I don’t
any errors. The schema_info table is created and schema.rb is updated
“:version => 1”.
Can I not create records this way? When I load up script/console and put
the same code, it will create the records just fine. The Account and
model are already created.
class AddFirst < ActiveRecord::Migration
Account.create :name => “Company Inc.”, :domain => “localhost”,
:subdomain => “”
User.create :name => “Administrator”, :username => “admin”,
“1234”, :email => “firstname.lastname@example.org”, :account_id => 1