Hola, e estado leyendo el libro de obi y tambien algo sobre scaffold 2
de
este link http://www.ruby-forum.com/topic/148608, pero tengo un problema
al
poner esto en la terminal
ruby script/generate scaffold admin/sala titulo:string
categoria_id:string
portada:text intro:text cuerpo:text autor:id allow_comments:boolean
published:boolean created_at:datetime updated_at:datetime
me crea los modelos, etc, etc, pero la migracion de las tablas me pone
class CreateAdminSalas < ActiveRecord::Migration
def self.up
create_table :admin_salas do |t|
t.string :titulo
t.string :categoria_id
t.text :portada
t.text :intro
t.text :cuerpo
t.id :autor
t.boolean :allow_comments
t.boolean :published
t.datetime :created_at
t.datetime :updated_at
t.timestamps
end
end
def self.down
drop_table :admin_salas
end
end
Existe alguna manera de que me cree la tabla sin necesidad del admin,
Gracias
Mauricio Dulcce
+54 1 5 36179028
Santos Dumont 2475
Capital Federal, Buenos Aires Argentina