repo stringlengths 5 92 | file_url stringlengths 80 287 | file_path stringlengths 5 197 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:37:27 2026-01-04 17:58:21 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings_nav/header_component.rb | app/views/components/settings_nav/header_component.rb | module SettingsNav
class HeaderComponent < ApplicationComponent
def view_template(&)
div(class: "mt-8 mb-4 font-bold text-700 group-data-[nav=dropdown]:hidden group-data-[nav=modal]:mt-4", &)
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings_nav/nav_component.rb | app/views/components/settings_nav/nav_component.rb | module SettingsNav
class NavComponent < ApplicationComponent
def initialize(title:, subtitle: nil, url:, icon:, selected: false, classes: nil, notification: false)
@title = title
@subtitle = subtitle
@url = url
@icon = icon
@selected = selected
@classes = classes
@notifi... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/settings_nav/nav_small_component.rb | app/views/components/settings_nav/nav_small_component.rb | module SettingsNav
class NavSmallComponent < ApplicationComponent
def initialize(url:, method: nil)
@url = url
@method = method
end
def view_template(&block)
li class: "last:mt-4" do
a href: @url, data_method: @method, class: "block !text-500 p-2 pl-8 rounded hover:bg-200 hover:... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/source_menu/feed.rb | app/views/components/source_menu/feed.rb | module SourceMenu
class Feed < ApplicationComponent
def initialize(feed:, source_target:)
@feed = feed
@source_target = source_target
end
def view_template
render(Wrapper.new) do
render ActionMarkRead.new(source_target: @source_target)
render ActionEdit.new(href: edit_su... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/source_menu/tag.rb | app/views/components/source_menu/tag.rb | module SourceMenu
class Tag < ApplicationComponent
def initialize(tag:, source_target:)
@tag = tag
@source_target = source_target
end
def view_template
render(Wrapper.new) do
render ActionMarkRead.new(source_target: @source_target)
render ActionEdit.new(href: edit_tag_pa... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/source_menu/action_mark_read.rb | app/views/components/source_menu/action_mark_read.rb | module SourceMenu
class ActionMarkRead < ApplicationComponent
def initialize(source_target:)
@source_target = source_target
end
def view_template
li do
button data: {behavior: "menu_mark_read", source_target: @source_target} do
span class: "icon-wrap" do
Icon("me... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/source_menu/search.rb | app/views/components/source_menu/search.rb | module SourceMenu
class Search < ApplicationComponent
def initialize(saved_search:, source_target:)
@saved_search = saved_search
@source_target = source_target
end
def view_template
render(Wrapper.new) do
render ActionMarkRead.new(source_target: @source_target)
render Ac... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/source_menu/wrapper.rb | app/views/components/source_menu/wrapper.rb | module SourceMenu
class Wrapper < ApplicationComponent
def view_template
button class: "feed-action-button source-menu", data: { behavior: "feed_action toggle_source_menu" } do
Icon("icon-dots")
template do
ul class: "nav" do
yield
end
end
end
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/source_menu/action_edit.rb | app/views/components/source_menu/action_edit.rb | module SourceMenu
class ActionEdit < ApplicationComponent
def initialize(href:)
@href = href
end
def view_template
li do
a href: @href, data: {behavior: "close_source_menu", open_dialog: Dialog::EditSubscription.dom_id, remote: true} do
span class: "icon-wrap" do
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/common/feeds_list.rb | app/views/components/common/feeds_list.rb | class Common::FeedsList < ApplicationComponent
def initialize(feeds:)
@feeds = feeds
end
def view_template
@feeds.each do |feed|
render Item.new(feed: feed)
end
end
class Item < ApplicationComponent
attr_accessor :feed
def initialize(feed:)
@feed = feed
end
def vie... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/common/error_message.rb | app/views/components/common/error_message.rb | class Common::ErrorMessage < ApplicationComponent
def view_template
p(class: "flex items-center p-2 bg-red-200 gap-2 rounded-lg mb-4") do
Icon("icon-error-message-small", class: "fill-red-600")
span(class: "text-day-600") { yield }
end
end
end | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/common/dropdown_menu.rb | app/views/components/common/dropdown_menu.rb | class Common::DropdownMenu < ApplicationComponent
include DeferredRender
def initialize
@items = []
end
def view_template
div class: "dropdown-wrap dropdown-right" do
button data_behavior: "toggle_dropdown" do
Icon("menu-icon-menu", class: "fill-500")
end
div class: "dropdown... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/common/icon.rb | app/views/components/common/icon.rb | class Common::Icon < ApplicationComponent
def initialize(name, options = {})
@name = name
@options = options
end
def view_template(&)
result = svg_options(@name, @options)
inline = result.options.delete(:inline)
svg(**result.options) do |s|
if inline
raw safe(result.icon.markup)... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/common/sparkline.rb | app/views/components/common/sparkline.rb | class Common::Sparkline < Phlex::SVG
def initialize(sparkline:, theme:)
@sparkline = sparkline
@theme = theme
end
def view_template
svg(width: @sparkline.width, height: @sparkline.height, stroke_width: @sparkline.stroke) do
linearGradient(id: "gradient", x1: "0", x2: "0", y1: "0", y2: "1") do
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/common/feed_link.rb | app/views/components/common/feed_link.rb | class Common::FeedLink < ApplicationComponent
def initialize(feed:, link: nil, behavior: nil)
@feed = feed
@link = link
@behavior = behavior
end
def view_template
a **options do
yield
end
end
def options
{
href: @link || feed_entries_path(@feed),
class: "feed-link"... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/form/radio_component.rb | app/views/components/form/radio_component.rb | module Form
class RadioComponent < ApplicationComponent
def view_template(&)
span class: "w-[16px] h-[16px] shadow-one flex rounded-full relative mr-1 border border-400 pg-checked:border-2 pg-checked:border-blue-600 pg-active:bg-300 pg-active:border-500 pg-checked:pg-active:bg-transparent pg-checked:pg-acti... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/form/input_cap_component.rb | app/views/components/form/input_cap_component.rb | module Form
class InputCapComponent < ApplicationComponent
def initialize(position: nil)
@position = position || "leading"
end
def view_template(&block)
div data: {position: @position}, class: "group border border-400 inset-y-0 flex items-stretch shadow-one relative data-[position=leading]:r... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/form/select_input_component.rb | app/views/components/form/select_input_component.rb | module Form
class SelectInputComponent < ApplicationComponent
slots :input, :label_content, :accessory_leading
def view_template
div(class: "mb-2 text-600", &@label_content) if label_content?
div data: {accessories: class_names(leading: accessory_leading?, trailing: "true")}, class: "select-wra... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/form/checkbox_component.rb | app/views/components/form/checkbox_component.rb | module Form
class CheckboxComponent < ApplicationComponent
def view_template(&)
span class: "w-[16px] h-[16px] flex items-center justify-center shadow-one relative border border-400 transition rounded-[3px] pg-checked:bg-blue-600 pg-checked:border-blue-600 pg-active:bg-300 pg-active:border-500 pg-checked:pg... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/form/switch_component.rb | app/views/components/form/switch_component.rb | module Form
class SwitchComponent < ApplicationComponent
def view_template(&)
span class: "w-[34px] h-[20px] flex bg-400 rounded-full relative transition duration-200 pg-checked:bg-blue-600 pg-active:pg-checked:bg-blue-700" do
span class: "absolute flex items-center justify-start -translate-x-1/2 -t... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/components/form/text_input_component.rb | app/views/components/form/text_input_component.rb | module Form
class TextInputComponent < ApplicationComponent
slots :input, :label_content, :accessory_leading
def view_template
div(class: "mb-2 text-600", &@label_content) if label_content?
label data: {accessories: class_names(leading: accessory_leading?, trailing: accessory_trailing?)}, class... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/actions/mutes_component.rb | app/views/actions/mutes_component.rb | module Actions
class MutesComponent < ApplicationComponent
def initialize(mutes:, user:, remote: false)
@mutes = mutes
@subscriptions = user.subscriptions.index_by(&:feed_id)
@remote = remote
end
def title(mute)
if mute.all_feeds?
"All Feeds"
elsif subscription = @su... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/layouts/application_layout.rb | app/views/layouts/application_layout.rb | # frozen_string_literal: true
class ApplicationLayout < ApplicationView
include Phlex::Rails::Layout
def view_template(&block)
doctype
html do
head do
title { "You're awesome" }
meta name: "viewport", content: "width=device-width,initial-scale=1"
csp_meta_tag
csrf_meta_tags
stylesheet_li... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/epub/article_view.rb | app/views/epub/article_view.rb | module Epub
class ArticleView < ApplicationComponent
def initialize(entry:, source:)
@entry = entry
@source = source
end
def view_template
html do
head do
title { @entry.plain_title_with_default }
link rel: "stylesheet", type: "text/css", href: "css.css"
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/fix_feeds/index_view.rb | app/views/fix_feeds/index_view.rb | module FixFeeds
class IndexView < ApplicationView
def initialize(user:, subscriptions:)
@user = user
@subscriptions = subscriptions
end
def view_template
render Settings::H1Component.new do
"Fix Feeds"
end
p(class: "text-500 mb-8") do
if @subscriptions.pres... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/fix_feeds/suggestion_component.rb | app/views/fix_feeds/suggestion_component.rb | module FixFeeds
class SuggestionComponent < ApplicationComponent
def initialize(replaceable:, source:, redirect:, remote: true, include_ignore: false)
@replaceable = replaceable
@source = source
@redirect = redirect
@remote = remote
@include_ignore = include_ignore
end
def ... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/fix_feeds/status_component.rb | app/views/fix_feeds/status_component.rb | module FixFeeds
class StatusComponent < ApplicationComponent
def initialize(count:, replace_path:)
@count = count
@replace_path = replace_path
end
def view_template
div(class: "flex gap-4 justify-between items-center mb-8", data: {behavior: "status_component"}) do
div do
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/views/shared/settings_nav_view.rb | app/views/shared/settings_nav_view.rb | module Shared
class SettingsNavView < ApplicationView
def initialize(user:)
@user = user
end
def view_template
div(class: "group-data-[nav=modal]:-mt-4") do
render ::SettingsNav::HeaderComponent.new do
plain " General "
end
end
ul do
render(::Se... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/mailers/entry_mailer.rb | app/mailers/entry_mailer.rb | class EntryMailer < ApplicationMailer
default from: "Feedbin <#{ENV["NOTIFICATION_EMAIL"]}>"
self.postmark_settings = { api_key: ENV["POSTMARK_API_KEY_BULK"] || ENV["POSTMARK_API_KEY"] }
def mailer(entry_id, to, subject, body, reply_to, email_name, readability)
@entry = Entry.find(entry_id)
@message = b... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/mailers/application_mailer.rb | app/mailers/application_mailer.rb | class ApplicationMailer < ActionMailer::Base
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/mailers/user_mailer.rb | app/mailers/user_mailer.rb | class UserMailer < ApplicationMailer
default from: "Feedbin <#{ENV["FROM_ADDRESS"]}>", skip_premailer: true
include ApplicationHelper
helper ApplicationHelper
def payment_receipt(billing_event)
@billing_event = BillingEvent.find(billing_event)
@user = @billing_event.billable
mail to: @user.email, s... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/app/mailers/marketing_mailer.rb | app/mailers/marketing_mailer.rb | class MarketingMailer < ApplicationMailer
default from: ENV["FROM_ADDRESS_MARKETING"]
layout "marketing_mailer"
def onboarding_1_welcome(user)
@user = user
mail(to: user.email, subject: "Welcome to Feedbin - a beautiful place to read on the web")
end
def onboarding_2_mobile(user)
@user = user
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/seeds.rb | db/seeds.rb | Plan.create!(stripe_id: "basic-monthly", name: "Monthly", price: 2, price_tier: 1)
Plan.create!(stripe_id: "basic-yearly", name: "Yearly", price: 20, price_tier: 1)
Plan.create!(stripe_id: "basic-monthly-2", name: "Monthly", price: 3, price_tier: 2)
Plan.create!(stripe_id: "basic-yearly-2", name: "Yearly", price: 30, p... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130826053351_index_users_on_lowercase_email.rb | db/migrate/20130826053351_index_users_on_lowercase_email.rb | class IndexUsersOnLowercaseEmail < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def up
execute "CREATE UNIQUE INDEX CONCURRENTLY index_users_on_lower_email ON users (LOWER(email))"
remove_index :users, :email
end
def down
execute "DROP INDEX index_users_on_lower_email"
add_index :user... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20190201020722_add_status_to_actions.rb | db/migrate/20190201020722_add_status_to_actions.rb | class AddStatusToActions < ActiveRecord::Migration[5.1]
def change
add_column :actions, :status, :integer, default: 0
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20160822194302_add_options_to_feeds.rb | db/migrate/20160822194302_add_options_to_feeds.rb | class AddOptionsToFeeds < ActiveRecord::Migration[4.2]
def change
add_column :feeds, :options, :json
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20121117225703_add_published_index_to_entries.rb | db/migrate/20121117225703_add_published_index_to_entries.rb | class AddPublishedIndexToEntries < ActiveRecord::Migration[4.2]
def up
add_index :entries, :published
end
def down
remove_index :entries, :published
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130218221354_add_opml_to_imports.rb | db/migrate/20130218221354_add_opml_to_imports.rb | class AddOpmlToImports < ActiveRecord::Migration[4.2]
def change
add_column :imports, :opml, :string
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20160709063934_add_active_to_feeds.rb | db/migrate/20160709063934_add_active_to_feeds.rb | class AddActiveToFeeds < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def up
add_column :feeds, :active, :boolean
change_column_default(:feeds, :active, true)
add_index :feeds, :active, algorithm: :concurrently
end
def down
remove_column :feeds, :active
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20160817165958_add_info_to_billing_events.rb | db/migrate/20160817165958_add_info_to_billing_events.rb | class AddInfoToBillingEvents < ActiveRecord::Migration[4.2]
def change
add_column :billing_events, :info, :json
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20251027170411_add_redirected_to_to_feeds.rb | db/migrate/20251027170411_add_redirected_to_to_feeds.rb | class AddRedirectedToToFeeds < ActiveRecord::Migration[7.2]
disable_ddl_transaction!
def change
add_column :feeds, :redirected_to, :text
add_index :feeds, :redirected_to, where: "redirected_to IS NOT NULL", algorithm: :concurrently
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20150602223929_add_application_and_operating_system_to_devices.rb | db/migrate/20150602223929_add_application_and_operating_system_to_devices.rb | class AddApplicationAndOperatingSystemToDevices < ActiveRecord::Migration[4.2]
def change
add_column :devices, :application, :text
add_column :devices, :operating_system, :text
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20121202173023_acts_as_taggable_on_migration.rb | db/migrate/20121202173023_acts_as_taggable_on_migration.rb | class ActsAsTaggableOnMigration < ActiveRecord::Migration[4.2]
def self.up
create_table :tags do |t|
t.string :name
end
create_table :taggings do |t|
t.references :tag
# You should make sure that the column created is
# long enough to store the required class names.
t.refer... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20140218235831_add_last_published_entry_to_feeds.rb | db/migrate/20140218235831_add_last_published_entry_to_feeds.rb | class AddLastPublishedEntryToFeeds < ActiveRecord::Migration[4.2]
def up
add_column :feeds, :last_published_entry, :datetime
add_index :feeds, :last_published_entry
end
def down
remove_column :feeds, :last_published_entry
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20221215200606_create_remote_files.rb | db/migrate/20221215200606_create_remote_files.rb | class CreateRemoteFiles < ActiveRecord::Migration[7.0]
def change
create_table :remote_files do |t|
t.uuid :fingerprint, null: false, index: {unique: true}
t.text :original_url, null: false
t.text :storage_url, null: false
t.jsonb :data, default: {}
t.jsonb :settings, default: {}
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130429154717_change_etag_to_text.rb | db/migrate/20130429154717_change_etag_to_text.rb | class ChangeEtagToText < ActiveRecord::Migration[4.2]
def up
change_table :feeds do |t|
t.change :etag, :text
end
end
def down
change_table :feeds do |t|
t.change :etag, :string
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20141215195928_index_recently_read_entries_on_entry_id.rb | db/migrate/20141215195928_index_recently_read_entries_on_entry_id.rb | class IndexRecentlyReadEntriesOnEntryId < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def change
add_index :recently_read_entries, :entry_id, algorithm: :concurrently
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130731234248_add_starred_entries_count_index_to_entries.rb | db/migrate/20130731234248_add_starred_entries_count_index_to_entries.rb | class AddStarredEntriesCountIndexToEntries < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def change
add_index :entries, :starred_entries_count, algorithm: :concurrently
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130403032414_remove_settings_from_users.rb | db/migrate/20130403032414_remove_settings_from_users.rb | class RemoveSettingsFromUsers < ActiveRecord::Migration[4.2]
def up
remove_column :users, :settings
end
def down
add_column :users, :settings
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20141022031229_add_title_to_actions.rb | db/migrate/20141022031229_add_title_to_actions.rb | class AddTitleToActions < ActiveRecord::Migration[4.2]
def change
add_column :actions, :title, :text
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130424132435_create_sharing_services.rb | db/migrate/20130424132435_create_sharing_services.rb | class CreateSharingServices < ActiveRecord::Migration[4.2]
def change
create_table :sharing_services do |t|
t.references :user
t.text :label
t.text :url
t.timestamps
t.index :user_id
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20170816220409_add_recently_played_counter_to_entries.rb | db/migrate/20170816220409_add_recently_played_counter_to_entries.rb | class AddRecentlyPlayedCounterToEntries < ActiveRecord::Migration[5.0]
disable_ddl_transaction!
def up
add_column :entries, :recently_played_entries_count, :integer
add_index :entries, :recently_played_entries_count, algorithm: :concurrently
change_column_default :entries, :recently_played_entries_coun... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130420171357_add_images_to_entries_again.rb | db/migrate/20130420171357_add_images_to_entries_again.rb | class AddImagesToEntriesAgain < ActiveRecord::Migration[4.2]
def change
change_table :entries do |t|
t.text :images, array: true
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20231113211123_add_podcast_columns.rb | db/migrate/20231113211123_add_podcast_columns.rb | class AddPodcastColumns < ActiveRecord::Migration[7.1]
def change
add_column :queued_entries, :skipped_chapters, :jsonb, null: false, default: []
add_column :podcast_subscriptions, :download_filter, :string
add_column :podcast_subscriptions, :download_filter_type, :bigint, null: false, default: 0
add_... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20221208231846_add_profile_image_url_to_twitter_users.rb | db/migrate/20221208231846_add_profile_image_url_to_twitter_users.rb | class AddProfileImageUrlToTwitterUsers < ActiveRecord::Migration[7.0]
def change
add_column :twitter_users, :profile_image_url, :text
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130508034554_create_unread_entries.rb | db/migrate/20130508034554_create_unread_entries.rb | class CreateUnreadEntries < ActiveRecord::Migration[4.2]
def change
create_table :unread_entries do |t|
t.references :user, index: true
t.references :feed, index: true
t.references :entry, index: true
t.datetime :published
t.timestamps
end
add_index :unread_entries, [:user_... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20190220004135_create_unreads.rb | db/migrate/20190220004135_create_unreads.rb | class CreateUnreads < ActiveRecord::Migration[5.1]
def change
create_table :unreads do |t|
t.references :user, foreign_key: false, null: false, index: true
t.references :feed, foreign_key: false, null: false, index: true
t.references :entry, foreign_key: false, null: false, index: true
t.d... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130326034638_use_text_for_entry_id.rb | db/migrate/20130326034638_use_text_for_entry_id.rb | class UseTextForEntryId < ActiveRecord::Migration[4.2]
def up
change_table :entries do |t|
t.change :entry_id, :text
end
end
def down
change_table :entries do |t|
t.change :entry_id, :string
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20190516024925_add_columns_to_import_items.rb | db/migrate/20190516024925_add_columns_to_import_items.rb | class AddColumnsToImportItems < ActiveRecord::Migration[5.1]
def change
add_column :import_items, :status, :bigint, default: 1, null: false
add_index :import_items, [:import_id, :status]
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20190715152451_add_kind_to_subscription.rb | db/migrate/20190715152451_add_kind_to_subscription.rb | class AddKindToSubscription < ActiveRecord::Migration[5.1]
disable_ddl_transaction!
def up
add_column :subscriptions, :kind, :bigint
change_column_default(:subscriptions, :kind, 0)
add_index :subscriptions, :kind, algorithm: :concurrently
UpdateDefaultColumn.perform_async({
"klass" => Subscr... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20121124070158_create_imports.rb | db/migrate/20121124070158_create_imports.rb | class CreateImports < ActiveRecord::Migration[4.2]
def change
create_table :imports do |t|
t.integer :user_id
t.boolean :complete
t.timestamps
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20160126003712_add_feed_type_to_feed.rb | db/migrate/20160126003712_add_feed_type_to_feed.rb | class AddFeedTypeToFeed < ActiveRecord::Migration[4.2]
disable_ddl_transaction!
def up
add_column :feeds, :feed_type, :integer
change_column_default(:feeds, :feed_type, Feed.feed_types[:xml])
add_index :feeds, :feed_type, algorithm: :concurrently
end
def down
remove_column :feeds, :feed_type
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130226191831_create_users.rb | db/migrate/20130226191831_create_users.rb | class CreateUsers < ActiveRecord::Migration[4.2]
def change
create_table :users do |t|
t.string :email
t.string :password_digest
t.string :customer_id
t.string :last_4_digits
t.integer :plan_id
t.text :settings
t.boolean :admin, default: false
t.boolean :suspended, ... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20121029015723_add_selected_entry_to_users.rb | db/migrate/20121029015723_add_selected_entry_to_users.rb | class AddSelectedEntryToUsers < ActiveRecord::Migration[4.2]
def change
add_column :users, :selected_entry, :integer
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20220916104628_add_last_change_check_to_feeds.rb | db/migrate/20220916104628_add_last_change_check_to_feeds.rb | class AddLastChangeCheckToFeeds < ActiveRecord::Migration[7.0]
def change
add_column :feeds, :last_change_check, :datetime
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20220204123745_add_show_to_subscriptions.rb | db/migrate/20220204123745_add_show_to_subscriptions.rb | class AddShowToSubscriptions < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
def change
add_column :subscriptions, :show_status, :bigint, default: 0, null: false
add_index :subscriptions, :show_status, algorithm: :concurrently
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20220302204617_create_account_migrations.rb | db/migrate/20220302204617_create_account_migrations.rb | class CreateAccountMigrations < ActiveRecord::Migration[7.0]
def change
create_table :account_migrations do |t|
t.references :user, foreign_key: false, null: false
t.text :api_token, null: false
t.bigint :status, null: false, default: 0
t.jsonb :data, default: {}
t.text :message
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130124144546_add_customer_id_index_to_users.rb | db/migrate/20130124144546_add_customer_id_index_to_users.rb | class AddCustomerIdIndexToUsers < ActiveRecord::Migration[4.2]
def change
add_index :users, :customer_id, unique: true
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20220926154041_update_refresh_metadata_on_feeds.rb | db/migrate/20220926154041_update_refresh_metadata_on_feeds.rb | class UpdateRefreshMetadataOnFeeds < ActiveRecord::Migration[7.0]
def change
add_column :feeds, :crawl_data, :jsonb
safety_assured do
remove_column :feeds, :etag, :text
remove_column :feeds, :last_modified, :datetime
remove_column :feeds, :fingerprint, :uuid
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20220422075327_create_podcast_subscriptions.rb | db/migrate/20220422075327_create_podcast_subscriptions.rb | class CreatePodcastSubscriptions < ActiveRecord::Migration[7.0]
def change
create_table :podcast_subscriptions do |t|
t.references :user, null: false, foreign_key: { on_delete: :cascade }
t.references :feed, null: false, foreign_key: { on_delete: :cascade }
t.bigint :status, null: false,... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20220209131258_create_app_store_notifications.rb | db/migrate/20220209131258_create_app_store_notifications.rb | class CreateAppStoreNotifications < ActiveRecord::Migration[7.0]
def change
create_table :app_store_notifications do |t|
t.references :user, null: false, index: true
t.text :original_transaction_id, null: false, index: true
t.uuid :notification_id, null: fa... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20231017104045_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb | db/migrate/20231017104045_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb | # This migration comes from active_storage (originally 20211119233751)
class RemoveNotNullOnActiveStorageBlobsChecksum < ActiveRecord::Migration[6.0]
def change
return unless table_exists?(:active_storage_blobs)
change_column_null(:active_storage_blobs, :checksum, true)
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130616023624_rename_imports_opml_to_upload.rb | db/migrate/20130616023624_rename_imports_opml_to_upload.rb | class RenameImportsOpmlToUpload < ActiveRecord::Migration[4.2]
def change
rename_column :imports, :opml, :upload
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20240226114227_add_categories_to_entry.rb | db/migrate/20240226114227_add_categories_to_entry.rb | class AddCategoriesToEntry < ActiveRecord::Migration[7.1]
def change
add_column :entries, :categories, :jsonb
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20200730134217_web_sub_updates.rb | db/migrate/20200730134217_web_sub_updates.rb | class WebSubUpdates < ActiveRecord::Migration[6.0]
disable_ddl_transaction!
def change
add_column :feeds, :hubs, :text, array: true
add_index :feeds, :push_expiration, where: "push_expiration IS NOT NULL", algorithm: :concurrently
add_index :feeds, :hubs, where: "hubs IS NOT NULL", algorithm: :concurre... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130420122821_add_images_to_entries.rb | db/migrate/20130420122821_add_images_to_entries.rb | class AddImagesToEntries < ActiveRecord::Migration[4.2]
def change
change_table :entries do |t|
t.string :images, array: true
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20200110142059_move_newsletter_tokens.rb | db/migrate/20200110142059_move_newsletter_tokens.rb | class MoveNewsletterTokens < ActiveRecord::Migration[6.0]
include SidekiqHelper
def up
enqueue_all(User, MoveTokens, "newsletter_token", "newsletters")
end
def down
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130202145544_rename_feed_title_to_title.rb | db/migrate/20130202145544_rename_feed_title_to_title.rb | class RenameFeedTitleToTitle < ActiveRecord::Migration[4.2]
def change
rename_column :feeds, :feed_title, :title
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130302033514_add_user_id_feed_id_index_to_taggings.rb | db/migrate/20130302033514_add_user_id_feed_id_index_to_taggings.rb | class AddUserIdFeedIdIndexToTaggings < ActiveRecord::Migration[4.2]
def change
add_index :taggings, [:user_id, :feed_id]
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20231017104044_create_active_storage_variant_records.active_storage.rb | db/migrate/20231017104044_create_active_storage_variant_records.active_storage.rb | # This migration comes from active_storage (originally 20191206030411)
class CreateActiveStorageVariantRecords < ActiveRecord::Migration[6.0]
def change
return unless table_exists?(:active_storage_blobs)
# Use Active Record's configured type for primary key
create_table :active_storage_variant_records, i... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20131202012915_add_push_expiration_to_feeds.rb | db/migrate/20131202012915_add_push_expiration_to_feeds.rb | class AddPushExpirationToFeeds < ActiveRecord::Migration[4.2]
def change
add_column :feeds, :push_expiration, :datetime
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20220719142811_add_feed_id_index_to_entries.rb | db/migrate/20220719142811_add_feed_id_index_to_entries.rb | class AddFeedIdIndexToEntries < ActiveRecord::Migration[7.0]
disable_ddl_transaction!
NAME = "index_entries_on_feed_id_include_id_published_created_at"
def up
execute "CREATE INDEX CONCURRENTLY #{NAME} ON entries (feed_id) INCLUDE (id, published, created_at)"
end
def down
remove_index :entries, NAME
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20131201051809_add_updated_content_to_entries.rb | db/migrate/20131201051809_add_updated_content_to_entries.rb | class AddUpdatedContentToEntries < ActiveRecord::Migration[4.2]
def change
add_column :entries, :updated_content, :text
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20230130211416_add_data_to_devices.rb | db/migrate/20230130211416_add_data_to_devices.rb | class AddDataToDevices < ActiveRecord::Migration[7.0]
def change
add_column :devices, :data, :jsonb, default: {}
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130107050848_remove_url_index_from_entries.rb | db/migrate/20130107050848_remove_url_index_from_entries.rb | class RemoveUrlIndexFromEntries < ActiveRecord::Migration[4.2]
def up
remove_index :entries, :url
end
def down
add_index :entries, :url
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130730090745_remove_images_from_entries.rb | db/migrate/20130730090745_remove_images_from_entries.rb | class RemoveImagesFromEntries < ActiveRecord::Migration[4.2]
def change
remove_column :entries, :images
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130301095638_add_indexes.rb | db/migrate/20130301095638_add_indexes.rb | class AddIndexes < ActiveRecord::Migration[4.2]
def change
add_index :users, :auth_token, unique: true
add_index :taggings, [:user_id, :tag_id]
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20231122160929_add_chapters_to_entry.rb | db/migrate/20231122160929_add_chapters_to_entry.rb | class AddChaptersToEntry < ActiveRecord::Migration[7.1]
def change
add_column :entries, :chapters, :jsonb
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130226190942_remove_users.rb | db/migrate/20130226190942_remove_users.rb | class RemoveUsers < ActiveRecord::Migration[4.2]
def up
drop_table :users
end
def down
create_table(:users) do |t|
t.string :email, null: false, default: ""
t.string :encrypted_password, null: false, default: ""
t.string :reset_password_token
t.datetime :reset_password_sent_at
... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20150424224723_create_devices.rb | db/migrate/20150424224723_create_devices.rb | class CreateDevices < ActiveRecord::Migration[4.2]
def change
create_table :devices do |t|
t.belongs_to :user, index: true
t.text :token
t.text :model
t.integer :device_type
t.timestamps
end
add_index :devices, :token
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130203185241_add_index_to_timestamps.rb | db/migrate/20130203185241_add_index_to_timestamps.rb | class AddIndexToTimestamps < ActiveRecord::Migration[4.2]
def change
add_index :entry_states, :updated_at
add_index :entries, :created_at
add_index :subscriptions, :created_at
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130531231556_drop_created_at_index_on_entries.rb | db/migrate/20130531231556_drop_created_at_index_on_entries.rb | class DropCreatedAtIndexOnEntries < ActiveRecord::Migration[4.2]
def self.up
remove_index :entries, :created_at
end
def self.down
add_index :entries, :created_at, algorithm: :concurrently
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20151019200512_add_image_to_entries.rb | db/migrate/20151019200512_add_image_to_entries.rb | class AddImageToEntries < ActiveRecord::Migration[4.2]
def change
add_column :entries, :image, :json
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130124120921_add_admin_to_user.rb | db/migrate/20130124120921_add_admin_to_user.rb | class AddAdminToUser < ActiveRecord::Migration[4.2]
def change
add_column :users, :admin, :boolean, default: false
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130218220024_remove_file_from_imports.rb | db/migrate/20130218220024_remove_file_from_imports.rb | class RemoveFileFromImports < ActiveRecord::Migration[4.2]
def self.up
drop_attached_file :imports, :file
end
def self.down
change_table :imports do |t|
t.has_attached_file :file
end
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20121011035904_create_feeds.rb | db/migrate/20121011035904_create_feeds.rb | class CreateFeeds < ActiveRecord::Migration[4.2]
def change
create_table :feeds do |t|
t.string :feed_title
t.string :feed_url
t.string :site_url
t.string :etag
t.timestamps
end
add_index :feeds, :feed_url, unique: true
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20121019045613_add_last_modified_to_feed.rb | db/migrate/20121019045613_add_last_modified_to_feed.rb | class AddLastModifiedToFeed < ActiveRecord::Migration[4.2]
def change
add_column :feeds, :last_modified, :datetime
end
end
| ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20140227001243_create_recently_read_entries.rb | db/migrate/20140227001243_create_recently_read_entries.rb | class CreateRecentlyReadEntries < ActiveRecord::Migration[4.2]
def change
create_table :recently_read_entries do |t|
t.references :user, index: true
t.references :entry
t.timestamps
end
add_index :recently_read_entries, [:user_id, :entry_id], unique: true
add_index :recently_read_en... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20201230004844_create_embeds.rb | db/migrate/20201230004844_create_embeds.rb | class CreateEmbeds < ActiveRecord::Migration[6.0]
def change
create_table :embeds do |t|
t.text :provider_id, null: false
t.references :parent, type: :text
t.integer :source, null: false
t.jsonb :data, null: false
t.timestamps
end
add_index :embeds, [:source, :provider_id], ... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
feedbin/feedbin | https://github.com/feedbin/feedbin/blob/02911157804301424ec3b1a17e1a9583c09b9e9b/db/migrate/20130709054041_add_subscriptions_count_to_feeds.rb | db/migrate/20130709054041_add_subscriptions_count_to_feeds.rb | class AddSubscriptionsCountToFeeds < ActiveRecord::Migration[4.2]
def self.up
add_column :feeds, :subscriptions_count, :integer, null: false, default: 0
Feed.reset_column_information
Feed.all.each do |feed|
Feed.reset_counters(feed.id, :subscriptions)
end
end
def self.down
remove_column... | ruby | MIT | 02911157804301424ec3b1a17e1a9583c09b9e9b | 2026-01-04T15:49:01.344805Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.