1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-03 01:09:08 +09:00
YuruToot/db/migrate/20160223164502_make_uris_nullable_in_statuses.rb

12 lines
247 B
Ruby

# frozen_string_literal: true
class MakeUrisNullableInStatuses < ActiveRecord::Migration[4.2]
def up
change_column :statuses, :uri, :string, null: true, default: nil
end
def down
raise ActiveRecord::IrreversibleMigration
end
end