Sha256: 9b17a15b3ee2d377e85b5fa5fc05b470dae37d0046106ad893562ff1ff30b451

Contents?: true

Size: 375 Bytes

Versions: 25

Compression:

Stored size: 375 Bytes

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

class Country < ApplicationRecord
  DEFAULT_OPTIONS = [
    "India",
    "Ireland",
    "United States",
    "United Kingdom",
    "Spain",
    "France",
    "Canada"
  ].freeze

  has_many :addresses, dependent: :restrict_with_exception
  has_many :cities, dependent: :destroy
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rails_bootstrap_form-0.5.3 demo/app/models/country.rb
rails_bootstrap_form-0.5.2 demo/app/models/country.rb
rails_bootstrap_form-0.5.1 demo/app/models/country.rb
rails_bootstrap_form-0.5.0 demo/app/models/country.rb
rails_bootstrap_form-0.4.2 demo/app/models/country.rb