Skip to content

Instantly share code, notes, and snippets.

@fearoffish
Forked from anonymous/gist:1303607
Created October 21, 2011 11:30
Show Gist options
  • Save fearoffish/1303612 to your computer and use it in GitHub Desktop.
Save fearoffish/1303612 to your computer and use it in GitHub Desktop.
class CreateMessages < ActiveRecord::Migration
def change
create_table :messages do |t|
t.string :subject
t.string :type
t.string :message
t.timestamps
end
end
end
@message = Message.new(:subject => params[:message][:subject], :type => params[:message][:type], :message => params[:message][:message])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment