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:
ruby script/generate migration news_db
Then in the 001_news_db.rb I used.
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:
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.