about summary refs log tree commit diff
path: root/db/migrate/20160220211917_create_statuses.rb
blob: 5e62e95be1230af3e57671a8372af876642cd94d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
class CreateStatuses < ActiveRecord::Migration
  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