Skip to content

Instantly share code, notes, and snippets.

Created October 21, 2011 11:30
Show Gist options
  • Save anonymous/1303607 to your computer and use it in GitHub Desktop.
Save anonymous/1303607 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(params[:message][:subject],params[:message][:type],params[:message][:message])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment