Class: CreateSupportTickets

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/supportcenter/templates/20150922215753_create_support_tickets.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



2
3
4
5
6
7
8
9
10
11
# File 'lib/generators/supportcenter/templates/20150922215753_create_support_tickets.rb', line 2

def change
  create_table :support_tickets do |t|
    t.string :email
    t.string :code
    t.text :content
    t.integer :user_id

    t.timestamps
  end
end