Sha256: 25654e81fcaf78de734ff85455d29e6696ec8debdb892f760fd3fc6996d6933b
Contents?: true
Size: 621 Bytes
Versions: 3
Compression:
Stored size: 621 Bytes
Contents
class CreateMessages < ActiveRecord::Migration def change create_table :messages do |t| t.string :first_name, :null => false, :default => '' t.string :last_name, :null => false, :default => '' t.string :subject, :null => false, :default => '' t.text :body, :null => false, :default => '' t.string :ip_address, :null => false, :default => '' t.timestamps end change_table :messages do |t| t.index :first_name t.index :last_name t.index :subject t.index :ip_address t.index :created_at t.index :updated_at end end end
Version data entries
3 entries across 3 versions & 1 rubygems