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:
authorUtku Gultopu <ugultopu@gmail.com>2021-01-11 16:22:41 +0300
committerUtku Gultopu <ugultopu@gmail.com>2021-01-12 20:37:02 +0300
commitf64b204829bb9b98b540c402f9add8ce904e91b9 (patch)
tree969314d8e07dbae7fb1d6ad726302336da5606a0 /db
parentbe466eb2d4398306dd285512347e1ec133f84d0e (diff)
Add Active Record versions to migrations
Since Rails 5.1, specifying a Rails version for which the migration was written for is required. This commit adds the missing versions.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20120308153738_create_versions.rb2
-rw-r--r--db/migrate/20120308153855_create_doc_files.rb2
-rw-r--r--db/migrate/20120308153921_create_docs.rb2
-rw-r--r--db/migrate/20120308160013_create_doc_versions.rb2
-rw-r--r--db/migrate/20120415151530_add_version_order.rb2
-rw-r--r--db/migrate/20120417001921_add_downloads.rb2
-rw-r--r--db/migrate/20120417220111_change_doc_sha_to_string.rb2
-rw-r--r--db/migrate/20120417221951_add_book_stuff.rb2
-rw-r--r--db/migrate/20120417224143_add_book_url.rb2
-rw-r--r--db/migrate/20120418152515_add_chapter_title_numbers.rb2
-rw-r--r--db/migrate/20120925124736_add_release_date_to_downloads.rb2
-rw-r--r--db/migrate/20121211011752_add_chapter_shas.rb2
-rw-r--r--db/migrate/20141023113548_add_edition_to_books.rb2
-rw-r--r--db/migrate/20141023122217_add_processed_flag.rb2
-rw-r--r--db/migrate/20141023135655_add_percent_complete.rb2
-rw-r--r--db/migrate/20141024175303_add_chapter_type.rb2
-rw-r--r--db/migrate/20141024194605_add_xrefs.rb2
-rw-r--r--db/migrate/20141027114732_add_language_name.rb2
-rw-r--r--db/migrate/20190131210305_add_language_to_doc_version.rb2
19 files changed, 19 insertions, 19 deletions
diff --git a/db/migrate/20120308153738_create_versions.rb b/db/migrate/20120308153738_create_versions.rb
index b78665d7..7778d1f1 100644
--- a/db/migrate/20120308153738_create_versions.rb
+++ b/db/migrate/20120308153738_create_versions.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class CreateVersions < ActiveRecord::Migration
+class CreateVersions < ActiveRecord::Migration[4.2]
def change
create_table :versions do |t|
t.string :name
diff --git a/db/migrate/20120308153855_create_doc_files.rb b/db/migrate/20120308153855_create_doc_files.rb
index dc18c697..9b3b723c 100644
--- a/db/migrate/20120308153855_create_doc_files.rb
+++ b/db/migrate/20120308153855_create_doc_files.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class CreateDocFiles < ActiveRecord::Migration
+class CreateDocFiles < ActiveRecord::Migration[4.2]
def change
create_table :doc_files do |t|
t.string :name
diff --git a/db/migrate/20120308153921_create_docs.rb b/db/migrate/20120308153921_create_docs.rb
index 758ba880..c3694c08 100644
--- a/db/migrate/20120308153921_create_docs.rb
+++ b/db/migrate/20120308153921_create_docs.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class CreateDocs < ActiveRecord::Migration
+class CreateDocs < ActiveRecord::Migration[4.2]
def change
create_table :docs do |t|
t.text :blob_sha
diff --git a/db/migrate/20120308160013_create_doc_versions.rb b/db/migrate/20120308160013_create_doc_versions.rb
index dcc9f4b8..1b58a315 100644
--- a/db/migrate/20120308160013_create_doc_versions.rb
+++ b/db/migrate/20120308160013_create_doc_versions.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class CreateDocVersions < ActiveRecord::Migration
+class CreateDocVersions < ActiveRecord::Migration[4.2]
def change
create_table :doc_versions do |t|
t.belongs_to :version
diff --git a/db/migrate/20120415151530_add_version_order.rb b/db/migrate/20120415151530_add_version_order.rb
index 8147d951..cbb4a3b2 100644
--- a/db/migrate/20120415151530_add_version_order.rb
+++ b/db/migrate/20120415151530_add_version_order.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddVersionOrder < ActiveRecord::Migration
+class AddVersionOrder < ActiveRecord::Migration[4.2]
def up
add_column :versions, :vorder, :float
Version.all.each do |version|
diff --git a/db/migrate/20120417001921_add_downloads.rb b/db/migrate/20120417001921_add_downloads.rb
index 9f38921c..bbe57a86 100644
--- a/db/migrate/20120417001921_add_downloads.rb
+++ b/db/migrate/20120417001921_add_downloads.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddDownloads < ActiveRecord::Migration
+class AddDownloads < ActiveRecord::Migration[4.2]
def up
create_table :downloads do |t|
t.string :url
diff --git a/db/migrate/20120417220111_change_doc_sha_to_string.rb b/db/migrate/20120417220111_change_doc_sha_to_string.rb
index c69047ac..6183ccc5 100644
--- a/db/migrate/20120417220111_change_doc_sha_to_string.rb
+++ b/db/migrate/20120417220111_change_doc_sha_to_string.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class ChangeDocShaToString < ActiveRecord::Migration
+class ChangeDocShaToString < ActiveRecord::Migration[4.2]
def up
change_column :docs, :blob_sha, :string
end
diff --git a/db/migrate/20120417221951_add_book_stuff.rb b/db/migrate/20120417221951_add_book_stuff.rb
index 6b043bce..4af8dee2 100644
--- a/db/migrate/20120417221951_add_book_stuff.rb
+++ b/db/migrate/20120417221951_add_book_stuff.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddBookStuff < ActiveRecord::Migration
+class AddBookStuff < ActiveRecord::Migration[4.2]
def up
create_table :books do |t|
t.string :code
diff --git a/db/migrate/20120417224143_add_book_url.rb b/db/migrate/20120417224143_add_book_url.rb
index aecabfc1..d6f35055 100644
--- a/db/migrate/20120417224143_add_book_url.rb
+++ b/db/migrate/20120417224143_add_book_url.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddBookUrl < ActiveRecord::Migration
+class AddBookUrl < ActiveRecord::Migration[4.2]
def up
add_column :sections, :source_url, :string
end
diff --git a/db/migrate/20120418152515_add_chapter_title_numbers.rb b/db/migrate/20120418152515_add_chapter_title_numbers.rb
index da88684a..c7802e89 100644
--- a/db/migrate/20120418152515_add_chapter_title_numbers.rb
+++ b/db/migrate/20120418152515_add_chapter_title_numbers.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddChapterTitleNumbers < ActiveRecord::Migration
+class AddChapterTitleNumbers < ActiveRecord::Migration[4.2]
def up
add_column :chapters, :number, :integer
add_column :sections, :number, :integer
diff --git a/db/migrate/20120925124736_add_release_date_to_downloads.rb b/db/migrate/20120925124736_add_release_date_to_downloads.rb
index 4937f8c7..6e6dc1c3 100644
--- a/db/migrate/20120925124736_add_release_date_to_downloads.rb
+++ b/db/migrate/20120925124736_add_release_date_to_downloads.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddReleaseDateToDownloads < ActiveRecord::Migration
+class AddReleaseDateToDownloads < ActiveRecord::Migration[4.2]
def change
add_column :downloads, :release_date, :timestamp
diff --git a/db/migrate/20121211011752_add_chapter_shas.rb b/db/migrate/20121211011752_add_chapter_shas.rb
index 229b2921..f6f852d8 100644
--- a/db/migrate/20121211011752_add_chapter_shas.rb
+++ b/db/migrate/20121211011752_add_chapter_shas.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddChapterShas < ActiveRecord::Migration
+class AddChapterShas < ActiveRecord::Migration[4.2]
def up
add_column :chapters, :sha, :string
end
diff --git a/db/migrate/20141023113548_add_edition_to_books.rb b/db/migrate/20141023113548_add_edition_to_books.rb
index 8bbfd0b4..ec2c86c1 100644
--- a/db/migrate/20141023113548_add_edition_to_books.rb
+++ b/db/migrate/20141023113548_add_edition_to_books.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddEditionToBooks < ActiveRecord::Migration
+class AddEditionToBooks < ActiveRecord::Migration[4.2]
def change
add_column :books, :edition, :integer, default: 1
add_column :books, :ebook_pdf, :string
diff --git a/db/migrate/20141023122217_add_processed_flag.rb b/db/migrate/20141023122217_add_processed_flag.rb
index 96c9a77a..1fbb9cb1 100644
--- a/db/migrate/20141023122217_add_processed_flag.rb
+++ b/db/migrate/20141023122217_add_processed_flag.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddProcessedFlag < ActiveRecord::Migration
+class AddProcessedFlag < ActiveRecord::Migration[4.2]
def change
add_column :books, :processed, :boolean
end
diff --git a/db/migrate/20141023135655_add_percent_complete.rb b/db/migrate/20141023135655_add_percent_complete.rb
index 74fa966c..925afd6a 100644
--- a/db/migrate/20141023135655_add_percent_complete.rb
+++ b/db/migrate/20141023135655_add_percent_complete.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddPercentComplete < ActiveRecord::Migration
+class AddPercentComplete < ActiveRecord::Migration[4.2]
def change
add_column :books, :percent_complete, :integer
end
diff --git a/db/migrate/20141024175303_add_chapter_type.rb b/db/migrate/20141024175303_add_chapter_type.rb
index e8ff96d6..4429fa8a 100644
--- a/db/migrate/20141024175303_add_chapter_type.rb
+++ b/db/migrate/20141024175303_add_chapter_type.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddChapterType < ActiveRecord::Migration
+class AddChapterType < ActiveRecord::Migration[4.2]
def change
add_column :chapters, :chapter_type, :string, default: "chapter"
add_column :chapters, :chapter_number, :string
diff --git a/db/migrate/20141024194605_add_xrefs.rb b/db/migrate/20141024194605_add_xrefs.rb
index b543c881..08b3d6d4 100644
--- a/db/migrate/20141024194605_add_xrefs.rb
+++ b/db/migrate/20141024194605_add_xrefs.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddXrefs < ActiveRecord::Migration
+class AddXrefs < ActiveRecord::Migration[4.2]
def change
create_table :xrefs do |t|
t.datetime "created_at"
diff --git a/db/migrate/20141027114732_add_language_name.rb b/db/migrate/20141027114732_add_language_name.rb
index 559292a9..c9e43cd4 100644
--- a/db/migrate/20141027114732_add_language_name.rb
+++ b/db/migrate/20141027114732_add_language_name.rb
@@ -1,6 +1,6 @@
# frozen_string_literal: true
-class AddLanguageName < ActiveRecord::Migration
+class AddLanguageName < ActiveRecord::Migration[4.2]
def change
add_column :books, :language, :string
end
diff --git a/db/migrate/20190131210305_add_language_to_doc_version.rb b/db/migrate/20190131210305_add_language_to_doc_version.rb
index f4ad7bbf..f955e7a1 100644
--- a/db/migrate/20190131210305_add_language_to_doc_version.rb
+++ b/db/migrate/20190131210305_add_language_to_doc_version.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
-class AddLanguageToDocVersion < ActiveRecord::Migration
+class AddLanguageToDocVersion < ActiveRecord::Migration[4.2]
def change
add_column :doc_versions, :language, :string, default: "en"
end