20170506235850_create_conversations.rb 289 B

123456789101112
  1. # frozen_string_literal: true
  2. class CreateConversations < ActiveRecord::Migration[5.0]
  3. def change
  4. create_table :conversations, id: :bigserial do |t|
  5. t.string :uri, null: true, default: nil
  6. t.timestamps
  7. end
  8. add_index :conversations, :uri, unique: true
  9. end
  10. end