New rails generate model feature
Nice ruby on rails new generator feature
Will addtionally create migration file with code
Added generated attribute options to script/generate model, like the one found in scaffold_resource and resource. Examples:
./script/generate model post title:string created_on:date body:text published:boolean
Will addtionally create migration file with code
def self.up
create_table :posts do |t|
t.column :title, :string
t.column :created_on, :date
t.column :body, :text
t.column :published, :boolean
end
end
Ярлыки: rubyonrails
Комментарии: 0:
Отправить комментарий
Подпишитесь на каналы Комментарии к сообщению [Atom]
<< Главная страница