Skip to content

Commit

Permalink
Old migrations Inherit ActiveRecord::Migrate[4.2]
Browse files Browse the repository at this point in the history
  • Loading branch information
kumabook committed Mar 1, 2018
1 parent a7e36fa commit b042370
Show file tree
Hide file tree
Showing 35 changed files with 277 additions and 277 deletions.
2 changes: 1 addition & 1 deletion db/migrate/20151216122150_create_feeds.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateFeeds < ActiveRecord::Migration
class CreateFeeds < ActiveRecord::Migration[4.2]
def change
create_table :feeds, id: false do |t|
t.string :id, :null => false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20151216123129_create_entries.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEntries < ActiveRecord::Migration
class CreateEntries < ActiveRecord::Migration[4.2]
def change
create_table :entries, id: false do |t|
t.string :id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160117142036_sorcery_core.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class SorceryCore < ActiveRecord::Migration
class SorceryCore < ActiveRecord::Migration[4.2]
def change
enable_extension 'uuid-ossp'
create_table :users, id: :uuid, default: "uuid_generate_v4()", force: true do |t|
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160117154118_add_type_to_users.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddTypeToUsers < ActiveRecord::Migration
class AddTypeToUsers < ActiveRecord::Migration[4.2]
def change
add_column :users, :type, :string
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160130210936_create_doorkeeper_tables.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateDoorkeeperTables < ActiveRecord::Migration
class CreateDoorkeeperTables < ActiveRecord::Migration[4.2]
def change
create_table :oauth_applications do |t|
t.string :name, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160131080107_create_subscriptions.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateSubscriptions < ActiveRecord::Migration
class CreateSubscriptions < ActiveRecord::Migration[4.2]
def change
create_table :subscriptions do |t|
t.uuid :user_id, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160131085233_create_user_entries.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateUserEntries < ActiveRecord::Migration
class CreateUserEntries < ActiveRecord::Migration[4.2]
def change
create_table :user_entries do |t|
t.uuid :user_id, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160131101411_create_tracks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTracks < ActiveRecord::Migration
class CreateTracks < ActiveRecord::Migration[4.2]
def change
create_table :tracks, id: :uuid, default: "uuid_generate_v4()", force: true do |t|
t.string :identifier
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160131120742_create_entry_tracks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEntryTracks < ActiveRecord::Migration
class CreateEntryTracks < ActiveRecord::Migration[4.2]
def change
create_table :entry_tracks do |t|
t.string :entry_id, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160203135426_create_likes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateLikes < ActiveRecord::Migration
class CreateLikes < ActiveRecord::Migration[4.2]
def change
create_table :likes do |t|
t.uuid :user_id, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160306055654_add_crawled_to_feed.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddCrawledToFeed < ActiveRecord::Migration
class AddCrawledToFeed < ActiveRecord::Migration[4.2]
def change
add_column :feeds, :crawled, :timestamp
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160322150141_add_saved_count_to_entries.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddSavedCountToEntries < ActiveRecord::Migration
class AddSavedCountToEntries < ActiveRecord::Migration[4.2]
def change
add_column :entries, :saved_count, :integer
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160327132942_add_last_updated_to_feeds.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLastUpdatedToFeeds < ActiveRecord::Migration
class AddLastUpdatedToFeeds < ActiveRecord::Migration[4.2]
def change
add_column :feeds, :lastUpdated, :timestamp
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160405140220_create_preferences.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreatePreferences < ActiveRecord::Migration
class CreatePreferences < ActiveRecord::Migration[4.2]
def change
create_table :preferences do |t|
t.uuid :user_id, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160414121450_create_topics.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTopics < ActiveRecord::Migration
class CreateTopics < ActiveRecord::Migration[4.2]
def change
create_table :topics, id: false, force: true do |t|
t.string :id , null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160416030823_create_feed_topics.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateFeedTopics < ActiveRecord::Migration
class CreateFeedTopics < ActiveRecord::Migration[4.2]
def change
create_table :feed_topics do |t|
t.string :feed_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160416035945_remove_topics_from_feeds.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveTopicsFromFeeds < ActiveRecord::Migration
class RemoveTopicsFromFeeds < ActiveRecord::Migration[4.2]
def change
remove_column :feeds, :topics, :string
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160416152358_create_categories.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateCategories < ActiveRecord::Migration
class CreateCategories < ActiveRecord::Migration[4.2]
def change
create_table :categories, id: false do |t|
t.string :id , null: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateSubscriptionCategories < ActiveRecord::Migration
class CreateSubscriptionCategories < ActiveRecord::Migration[4.2]
def change
create_table :subscription_categories do |t|
t.integer :subscription_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160429013159_add_engagement_to_topic.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddEngagementToTopic < ActiveRecord::Migration
class AddEngagementToTopic < ActiveRecord::Migration[4.2]
def change
add_column :topics, :engagement, :integer, :null => false, :default => 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160505162656_create_tags.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateTags < ActiveRecord::Migration
class CreateTags < ActiveRecord::Migration[4.2]
def change
create_table :tags, id: false, force: true do |t|
t.string :id , null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160507125904_create_entry_tags.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEntryTags < ActiveRecord::Migration
class CreateEntryTags < ActiveRecord::Migration[4.2]
def change
create_table :entry_tags do |t|
t.string :tag_id
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160507125910_remove_tags_from_entries.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RemoveTagsFromEntries < ActiveRecord::Migration
class RemoveTagsFromEntries < ActiveRecord::Migration[4.2]
def change
remove_column :entries, :tags, :string
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160507155242_create_keywords.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateKeywords < ActiveRecord::Migration
class CreateKeywords < ActiveRecord::Migration[4.2]
def change
create_table :keywords, id: false, force: true do |t|
t.string :id , null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160507155406_create_entry_keywords.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEntryKeywords < ActiveRecord::Migration
class CreateEntryKeywords < ActiveRecord::Migration[4.2]
def change
create_table :entry_keywords do |t|
t.string :entry_id, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160507185324_create_read_entries.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateReadEntries < ActiveRecord::Migration
class CreateReadEntries < ActiveRecord::Migration[4.2]
def change
create_table :read_entries do |t|
t.uuid :user_id, null: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class RenameUserEntriesToSavedEntries < ActiveRecord::Migration
class RenameUserEntriesToSavedEntries < ActiveRecord::Migration[4.2]
def change
rename_table :user_entries, :saved_entries
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160924163638_create_journals.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateJournals < ActiveRecord::Migration
class CreateJournals < ActiveRecord::Migration[4.2]
def change
create_table :journals, id: :uuid, force: true do |t|
t.string :stream_id, null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160925091649_create_issues.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateIssues < ActiveRecord::Migration
class CreateIssues < ActiveRecord::Migration[4.2]
def change
create_table :issues, id: :uuid, force: true do |t|
t.string :label , null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20160925092846_create_entry_issues.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class CreateEntryIssues < ActiveRecord::Migration
class CreateEntryIssues < ActiveRecord::Migration[4.2]
def change
create_table :entry_issues do |t|
t.string :entry_id , null: false
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20161010170619_change_saved_count_of_entries.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class ChangeSavedCountOfEntries < ActiveRecord::Migration
class ChangeSavedCountOfEntries < ActiveRecord::Migration[4.2]
def change
change_column :entries, :saved_count, :integer, null: false, default: 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20161010171736_add_read_count_to_entries.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddReadCountToEntries < ActiveRecord::Migration
class AddReadCountToEntries < ActiveRecord::Migration[4.2]
def change
add_column :entries, :read_count, :integer, null: false, default: 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20161010173542_add_like_count_to_tracks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddLikeCountToTracks < ActiveRecord::Migration
class AddLikeCountToTracks < ActiveRecord::Migration[4.2]
def change
add_column :tracks, :like_count, :integer, null: false, default: 0
end
Expand Down
2 changes: 1 addition & 1 deletion db/migrate/20161225010831_add_entries_count_to_tracks.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
class AddEntriesCountToTracks < ActiveRecord::Migration
class AddEntriesCountToTracks < ActiveRecord::Migration[4.2]
def change
add_column :tracks, :entries_count, :integer, null: false, default: 0
end
Expand Down

0 comments on commit b042370

Please sign in to comment.