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.9.9 demo/app/models/country.rb
rails_bootstrap_form-0.9.8 demo/app/models/country.rb
rails_bootstrap_form-0.9.7 demo/app/models/country.rb
rails_bootstrap_form-0.9.6 demo/app/models/country.rb
rails_bootstrap_form-0.9.5 demo/app/models/country.rb
rails_bootstrap_form-0.9.4 demo/app/models/country.rb
rails_bootstrap_form-0.9.3 demo/app/models/country.rb
rails_bootstrap_form-0.9.2 demo/app/models/country.rb
rails_bootstrap_form-0.9.1 demo/app/models/country.rb
rails_bootstrap_form-0.9.0 demo/app/models/country.rb
rails_bootstrap_form-0.8.3 demo/app/models/country.rb
rails_bootstrap_form-0.8.2 demo/app/models/country.rb
rails_bootstrap_form-0.8.1 demo/app/models/country.rb
rails_bootstrap_form-0.8.0 demo/app/models/country.rb
rails_bootstrap_form-0.7.2 demo/app/models/country.rb
rails_bootstrap_form-0.7.1 demo/app/models/country.rb
rails_bootstrap_form-0.7.0 demo/app/models/country.rb
rails_bootstrap_form-0.6.2 demo/app/models/country.rb
rails_bootstrap_form-0.6.1 demo/app/models/country.rb
rails_bootstrap_form-0.6.0 demo/app/models/country.rb