logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20160220211917_create_statuses.rb (326B)


  1. class CreateStatuses < ActiveRecord::Migration[4.2]
  2. def change
  3. create_table :statuses do |t|
  4. t.string :uri, null: false, default: ''
  5. t.integer :account_id, null: false
  6. t.text :text, null: false, default: ''
  7. t.timestamps null: false
  8. end
  9. add_index :statuses, :uri, unique: true
  10. end
  11. end