Sha256: a6b5923eb270a8a1365ca37da64dc0995256dd0d276beac908093f90cba9b7a9
Contents?: true
Size: 361 Bytes
Versions: 3
Compression:
Stored size: 361 Bytes
Contents
class CreateMessages < ActiveRecord::Migration def self.up create_table :messages do |t| t.references :sender, :polymorphic => true, :null => false t.text :subject, :body t.string :state, :null => false t.datetime :hidden_at t.string :type t.timestamps end end def self.down drop_table :messages end end
Version data entries
3 entries across 3 versions & 2 rubygems