Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorScott Chacon <schacon@gmail.com>2014-10-23 19:50:26 +0400
committerScott Chacon <schacon@gmail.com>2014-10-23 19:50:26 +0400
commit05cde2511a173513b2ad91e01da3266dafcde267 (patch)
treebe8528c104c8003bef4639c9dee64f1e453bfdd7 /db
parent6379ec9def4bf78f359ec5f056da82965a8ac61b (diff)
prepare for progit v2
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20141023113548_add_edition_to_books.rb9
-rw-r--r--db/migrate/20141023122217_add_processed_flag.rb5
-rw-r--r--db/migrate/20141023135655_add_percent_complete.rb5
3 files changed, 19 insertions, 0 deletions
diff --git a/db/migrate/20141023113548_add_edition_to_books.rb b/db/migrate/20141023113548_add_edition_to_books.rb
new file mode 100644
index 00000000..d2808422
--- /dev/null
+++ b/db/migrate/20141023113548_add_edition_to_books.rb
@@ -0,0 +1,9 @@
+class AddEditionToBooks < ActiveRecord::Migration
+ def change
+ add_column :books, :edition, :integer, :default => 1
+ add_column :books, :ebook_pdf, :string
+ add_column :books, :ebook_epub, :string
+ add_column :books, :ebook_mobi, :string
+ add_column :books, :ebook_html, :string
+ end
+end
diff --git a/db/migrate/20141023122217_add_processed_flag.rb b/db/migrate/20141023122217_add_processed_flag.rb
new file mode 100644
index 00000000..659290e7
--- /dev/null
+++ b/db/migrate/20141023122217_add_processed_flag.rb
@@ -0,0 +1,5 @@
+class AddProcessedFlag < ActiveRecord::Migration
+ def change
+ add_column :books, :processed, :boolean
+ end
+end
diff --git a/db/migrate/20141023135655_add_percent_complete.rb b/db/migrate/20141023135655_add_percent_complete.rb
new file mode 100644
index 00000000..89336342
--- /dev/null
+++ b/db/migrate/20141023135655_add_percent_complete.rb
@@ -0,0 +1,5 @@
+class AddPercentComplete < ActiveRecord::Migration
+ def change
+ add_column :books, :percent_complete, :integer
+ end
+end