mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 11:53:44 +08:00
18 lines
483 B
Ruby
18 lines
483 B
Ruby
class AddThemeRemoteFields < ActiveRecord::Migration
|
|
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
|
|
t.timestamps null: false
|
|
end
|
|
|
|
add_column :themes, :remote_theme_id, :integer
|
|
add_index :themes, :remote_theme_id, unique: true
|
|
end
|
|
end
|