mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 19:55:16 +00:00
* Drop unused heartbeat lookup tables and their FK columns Remove 8 abandoned normalization tables (heartbeat_branches, heartbeat_categories, heartbeat_editors, heartbeat_languages, heartbeat_machines, heartbeat_operating_systems, heartbeat_projects, heartbeat_user_agents) and their corresponding foreign key columns from the heartbeats table. None had models, associations, or any application code referencing them. * Remove migrations cancelling each other out
20 lines
471 B
Ruby
20 lines
471 B
Ruby
class CreateRepositories < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :repositories do |t|
|
|
t.string :url
|
|
t.string :host
|
|
t.string :owner
|
|
t.string :name
|
|
t.integer :stars
|
|
t.text :description
|
|
t.string :language
|
|
t.text :languages
|
|
t.integer :commit_count
|
|
t.datetime :last_commit_at
|
|
t.datetime :last_synced_at
|
|
|
|
t.timestamps
|
|
end
|
|
add_index :repositories, :url, unique: true
|
|
end
|
|
end
|