Sha256: db4e83878a379af3f80a367cd41fb64ed0c23062ece0deb7799dbe14fa22ca03
Contents?: true
Size: 355 Bytes
Versions: 55
Compression:
Stored size: 355 Bytes
Contents
class GovernorCreateArticles < ActiveRecord::Migration def self.up create_table :articles do |t| t.string :title, :description t.string :format, :default => 'default' t.text :post t.references :author, :polymorphic => true t.timestamps end end def self.down drop_table :articles end end
Version data entries
55 entries across 55 versions & 10 rubygems