Sha256: b9b01ac67e11909ccd8e429709224b8ec44aa852d3f26013748a9a8ae026255d
Contents?: true
Size: 246 Bytes
Versions: 1
Compression:
Stored size: 246 Bytes
Contents
class CreateNewsTable < ActiveRecord::Migration def self.up create_table :news do |t| t.string :title t.string :author t.text :content t.timestamps end end def self.down drop_table :news end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
news-0.2.0 | lib/generators/news/templates/migration.rb |