# \[RoR\] Rake Migrate problem

**URL:** https://forum.kirupa.com/t/ror-rake-migrate-problem/210857
**Category:** programming
**Created:** [December 22, 2006, 10:45pm UTC](https://forum.kirupa.com/t/ror-rake-migrate-problem/210857 "2006-12-22T22:45:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![evildrummer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evildrummer/32/2308_2.png) [@evildrummer](https://forum.kirupa.com/u/evildrummer)
#### Post date: [December 22, 2006, 10:45pm UTC](https://forum.kirupa.com/t/ror-rake-migrate-problem/210857/1 "2006-12-22T22:45:30Z")

</div>

ok, so I am moderately ok at rails yet I cant spot my problem, anyone good at rails/ruby,

I am trying to create table from rails, and here is my proccess:

First went to base of project and in terminal did:

```auto
ruby script/generate migration news_db

```

Then in the 001\_news\_db.rb I used.

```auto

class ContactDb < ActiveRecord::Migration
 def self.up
  create_table "news" do |t|
   t.column "id", :integer
   t.column "Content", :string
   t.column "Date Posted", :string
  end
 end

 def self.down
  drop_table :news
 end
end

```

Then in the base of project in terminal again I used:

```auto
rake migrate

```

and the out put I get is:

> 

(in /home/5900/containers/rails/wopmod)  
rake aborted!  
uninitialized constant NewsDb

(See full trace by running task with --trace)

I know nokrev you can do rails so your my main hope.
