discourse/db/migrate/20170410170923_add_theme_remote_fields.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
519 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class AddThemeRemoteFields < ActiveRecord::Migration[4.2]
def change
create_table :remote_themes do |t|
t.string :remote_url, null: false
t.string :remote_version
t.string :local_version
t.string :about_url
t.string :license_url
t.integer :commits_behind
t.datetime :remote_updated_at
2017-08-07 23:48:36 +08:00
t.timestamps null: false
end
add_column :themes, :remote_theme_id, :integer
add_index :themes, :remote_theme_id, unique: true
end
end