일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
- 우분투
- change_column_null
- 쿠버네티스
- 설치
- mac
- 주차장 시스템
- Time.znoe.now
- with_indifferent_access
- Java
- docker
- 코틀린
- Migrate
- install
- 도커
- Kotlin
- RUBY
- 이것이 자바다
- 오랜지파이
- Visual Studio Code
- Ruby on Rails
- Rails
- after_save
- 우분투 24
- Orange Pi 3B
- ubuntu
- 사용중인포트검색
- MySQL
- change_column
- docket
- after_update
- Today
- Total
목록Back-End (52)
중고 신입이 개발해보기..
nil을 제일 앞으로 배치 [2, 5, 1, nil, 7, 3, nil, nil, 4, 6].sort_by { |i| [i ? 1 : 0, i] } => [nil, nil, nil, 1, 2, 3, 4, 5, 6, 7] nil을 제일 뒤로 배치 [2, 5, 1, nil, 7, 3, nil, nil, 4, 6].sort_by { |i| [i ? 0 : 1, i] } => [1, 2, 3, 4, 5, 6, 7, nil, nil, nil]
쿠버네티스는 무엇일까?? 용어들을 정리해보자. - 이것 무엇일까?? worker ingress master 젠킨스 jenkins - 오픈 소스 CI/CD 도구 - CI (Continuous Integration 지속적 통합 ) - CD (Continuous Delivery 지속적 배포(전달))
time = Time.zone.now => Fri, 20 Aug 2021 03:26:04 KST +09:00 time.to_date.to_formatted_s(:number) => "20210820" time.to_datetime.to_formatted_s(:number) => "20210820032604" time.to_time.to_formatted_s(:number) => "20210820032604" Time.zone.now.strftime('%Y-%m-%d %H:%M:%S') => "2021-08-20 03:41:33" Time.zone.now.strftime("%Y%m%d") => "20210820" Time.zone.now.strftime("%H%M%S") => "034352"
column의 nullable수정하기.. 해당값이 null: false인데 이것을 null:ture로 변경하고 싶을때 change_column_null :users, :user_nick_name, true nullable이 true로 변경된다. 다음은....

github에 저장소를 하나 만든다.. $ git config --list $ git config --local user.name 'my_name' $ git config --local user.email 'my_name@email.com' $ brew uninstall postgresql $ brew cleanup $ brew install postgresql 재설치를 했다.. $ postgres -V postgres (PostgreSQL) 13.1 createuser -P -d kalvastro bahn654 Postgres를 Free로 사용할수 있다..
{ a: 1 }.with_indifferent_access['a'] # => 1 { ‘a’ => 1 }.with_indifferent_access[:a] # => 1 심블이냐... 스트링이냐. 동시에 가능하도록해준다.. apidock.com/rails/Hash/with_indifferent_access with_indifferent_access (Hash) - APIdock with_indifferent_access() public Show source def with_indifferent_access ActiveSupport::HashWithIndifferentAccess.new(self) end apidock.com blog.dizy.dev/dev/2017/12/27/with_indifferent_a..
마이그레이션 # ./bin/rails db:migrate 롤백하기 # ./bin/rails db:rollback 마이그레이션 상태 보기 #./bin/rake db:migrate:status up 20200903071549 ********** NO FILE ********** up 20200903071603 ********** NO FILE ********** up 20201005053504 Create User up 20201012013519 ********** NO FILE ********** up 20201013012806 ********** NO FILE **********

https://rubyinrails.com/2019/04/08/rails-changed-behavior-of-attribute-changed-in-callbacks/ Rails changed behavior of attribute_changed in callbacks Rails changed behavior of attribute_changed? in after and before callbacks. Older versions will throw deprecation warnings indicating which methods to use instead. When working on Rails 5.1.5 project, a warning was thrown in rails server logs. DEPR..