about summary refs log blame commit diff
path: root/db/migrate/20160220211917_create_statuses.rb
blob: b1746856873286b0f4dc42e7c78a834471755410 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                                   










                                             
class CreateStatuses < ActiveRecord::Migration[4.2]
  def change
    create_table :statuses do |t|
      t.string :uri, null: false, default: ''
      t.integer :account_id, null: false
      t.text :text, null: false, default: ''

      t.timestamps null: false
    end

    add_index :statuses, :uri, unique: true
  end
end