From c581aa2fb88923412b045478e3fe297cf72a830b Mon Sep 17 00:00:00 2001 From: Ahmet Sezgin Duran Date: Tue, 10 Sep 2013 12:44:05 +0300 Subject: [PATCH] #24 Create default users for development and update README.md --- CHANGELOG.md | 72 ++++++++++++++++++++++++++++++++-------------------- README.md | 10 ++++++++ db/seeds.rb | 21 +++++++++++++++ 3 files changed, 76 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a274630..73120d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,30 +2,48 @@ #### [Current] #### - * [c338d33](../../commit/c338d33) [#18](../../issues/18) Change default database of development to Sqlite3 __(Ahmet Sezgin Duran)__ - * [f07214a](../../commit/f07214a) [#21](../../issues/21) error class changed __(Muhammet DİLEK)__ - * [52318cd](../../commit/52318cd) [#19](../../issues/19) Fix README.md markdown of Gemnasium __(Ahmet Sezgin Duran)__ - * [664c51a](../../commit/664c51a) [#19](../../issues/19) Add README.md markdowns for Code Climate and Gemnasium __(Ahmet Sezgin Duran)__ - * [d62da34](../../commit/d62da34) [#21](../../issues/21) file changed __(Muhammet DİLEK)__ - * [fe16c6e](../../commit/fe16c6e) [#16](../../issues/16) application layout changed __(Muhammet DİLEK)__ - * [e28bc55](../../commit/e28bc55) [#21](../../issues/21) Simple form improved for bootstrap 3 __(Muhammet DİLEK)__ - * [eff7256](../../commit/eff7256) [#19](../../issues/19) Add configuration file for Travis CI __(Ahmet Sezgin Duran)__ - * [7c7fa5b](../../commit/7c7fa5b) [#16](../../issues/16) form page added __(Muhammet DİLEK)__ - * [aca6f8b](../../commit/aca6f8b) [#16](../../issues/16) tables page added __(Muhammet DİLEK)__ - * [0008243](../../commit/0008243) [#16](../../issues/16) view helper moved to application helper __(Muhammet DİLEK)__ - * [b39c20a](../../commit/b39c20a) [#16](../../issues/16) hq namespace base layout added __(Muhammet DİLEK)__ - * [f954448](../../commit/f954448) [#16](../../issues/16) login layout added __(Muhammet DİLEK)__ - * [51e9f1f](../../commit/51e9f1f) [#16](../../issues/16) partials added __(Muhammet DİLEK)__ - * [a9663dc](../../commit/a9663dc) [#9](../../issues/9) Setup mailchimp settings __(Onur Ozgur OZKAN)__ - * [740c66a](../../commit/740c66a) [#16](../../issues/16) hierapolis assets added under the vendor __(Muhammet DİLEK)__ - * [a7f31ef](../../commit/a7f31ef) [#13](../../issues/13) Set staging env __(Onur Ozgur OZKAN)__ - * [d24d060](../../commit/d24d060) [#16](../../issues/16) bootstrap-sass gem updated for bootstrap 3 __(Muhammet DİLEK)__ - * [8183086](../../commit/8183086) [#15](../../issues/15) Set racktime out __(Onur Ozgur OZKAN)__ - * [2cac814](../../commit/2cac814) [#12](../../issues/12) Set default timezone and i18n __(Onur Ozgur OZKAN)__ - * [6538045](../../commit/6538045) [#14](../../issues/14) Vulnerability Note VU[#380039](../../issues/380039) __(Onur Ozgur OZKAN)__ - * [777623b](../../commit/777623b) [#11](../../issues/11) Add .ruby-version file __(Onur Ozgur OZKAN)__ - * [071d9d8](../../commit/071d9d8) [#10](../../issues/10) Add .editorconfig file __(Onur Ozgur OZKAN)__ - * [1a7c073](../../commit/1a7c073) [#8](../../issues/8) Add VERSION.txt __(Onur Ozgur OZKAN)__ - * [f404cc1](../../commit/f404cc1) [#7](../../issues/7) Add CHANGELOG.md __(Onur Ozgur OZKAN)__ - * [1a31842](../../commit/1a31842) [#5](../../issues/5) project created with cybele __(Muhammet DİLEK)__ - * [20f347a](../../commit/20f347a) Initial commit __(Muhammet DİLEK)__ + * [1943cab](../../commit/1943cab) - __(Muhammet DİLEK)__ [#20](../../issues/20) edit and new page added + * [6206a77](../../commit/6206a77) - __(Muhammet DİLEK)__ [#20](../../issues/20) pagination view added + * [3c7bf81](../../commit/3c7bf81) - __(Muhammet DİLEK)__ [#20](../../issues/20) ransack form added + * [f2b7ce3](../../commit/f2b7ce3) - __(emineeliftoscali)__ [#23](../../issues/23) Gems Updated with latest versions + +- Devise secret key added + + * [a862452](../../commit/a862452) - __(emineeliftoscali)__ [#23](../../issues/23) Gems Updated with latest versions + * [8d31387](../../commit/8d31387) - __(Onur Özgür ÖZKAN)__ [#6](../../issues/6) Add header to README.md + * [ee34b62](../../commit/ee34b62) - __(kadriye)__ [#6](../../issues/6) mail fixed on README.md + * [3622339](../../commit/3622339) - __(kadriye)__ [#6](../../issues/6) README.md updated + * [c2cab5d](../../commit/c2cab5d) - __(Ahmet Sezgin Duran)__ [#19](../../issues/19) Add README.md markdown for Travis CI + * [13a97e6](../../commit/13a97e6) - __(Muhammet DİLEK)__ [#20](../../issues/20) ransack added + * [f1f8c33](../../commit/f1f8c33) - __(Muhammet DİLEK)__ merge + * [28ec222](../../commit/28ec222) - __(Muhammet DİLEK)__ [#20](../../issues/20) index improved + * [453767f](../../commit/453767f) - __(Muhammet DİLEK)__ merge + * [e471486](../../commit/e471486) - __(Muhammet DİLEK)__ [#16](../../issues/16) add csrf_meta_tags to layouts + * [c338d33](../../commit/c338d33) - __(Ahmet Sezgin Duran)__ [#18](../../issues/18) Change default database of development to Sqlite3 + * [9429352](../../commit/9429352) - __(Muhammet DİLEK)__ [#20](../../issues/20) form improved + * [f07214a](../../commit/f07214a) - __(Muhammet DİLEK)__ [#21](../../issues/21) error class changed + * [52318cd](../../commit/52318cd) - __(Ahmet Sezgin Duran)__ [#19](../../issues/19) Fix README.md markdown of Gemnasium + * [664c51a](../../commit/664c51a) - __(Ahmet Sezgin Duran)__ [#19](../../issues/19) Add README.md markdowns for Code Climate and Gemnasium + * [d62da34](../../commit/d62da34) - __(Muhammet DİLEK)__ [#21](../../issues/21) file changed + * [fe16c6e](../../commit/fe16c6e) - __(Muhammet DİLEK)__ [#16](../../issues/16) application layout changed + * [e28bc55](../../commit/e28bc55) - __(Muhammet DİLEK)__ [#21](../../issues/21) Simple form improved for bootstrap 3 + * [eff7256](../../commit/eff7256) - __(Ahmet Sezgin Duran)__ [#19](../../issues/19) Add configuration file for Travis CI + * [7c7fa5b](../../commit/7c7fa5b) - __(Muhammet DİLEK)__ [#16](../../issues/16) form page added + * [aca6f8b](../../commit/aca6f8b) - __(Muhammet DİLEK)__ [#16](../../issues/16) tables page added + * [0008243](../../commit/0008243) - __(Muhammet DİLEK)__ [#16](../../issues/16) view helper moved to application helper + * [b39c20a](../../commit/b39c20a) - __(Muhammet DİLEK)__ [#16](../../issues/16) hq namespace base layout added + * [f954448](../../commit/f954448) - __(Muhammet DİLEK)__ [#16](../../issues/16) login layout added + * [51e9f1f](../../commit/51e9f1f) - __(Muhammet DİLEK)__ [#16](../../issues/16) partials added + * [a9663dc](../../commit/a9663dc) - __(Onur Ozgur OZKAN)__ [#9](../../issues/9) Setup mailchimp settings + * [740c66a](../../commit/740c66a) - __(Muhammet DİLEK)__ [#16](../../issues/16) hierapolis assets added under the vendor + * [a7f31ef](../../commit/a7f31ef) - __(Onur Ozgur OZKAN)__ [#13](../../issues/13) Set staging env + * [d24d060](../../commit/d24d060) - __(Muhammet DİLEK)__ [#16](../../issues/16) bootstrap-sass gem updated for bootstrap 3 + * [8183086](../../commit/8183086) - __(Onur Ozgur OZKAN)__ [#15](../../issues/15) Set racktime out + * [2cac814](../../commit/2cac814) - __(Onur Ozgur OZKAN)__ [#12](../../issues/12) Set default timezone and i18n + * [6538045](../../commit/6538045) - __(Onur Ozgur OZKAN)__ [#14](../../issues/14) Vulnerability Note VU[#380039](../../issues/380039) + * [777623b](../../commit/777623b) - __(Onur Ozgur OZKAN)__ [#11](../../issues/11) Add .ruby-version file + * [071d9d8](../../commit/071d9d8) - __(Onur Ozgur OZKAN)__ [#10](../../issues/10) Add .editorconfig file + * [1a7c073](../../commit/1a7c073) - __(Onur Ozgur OZKAN)__ [#8](../../issues/8) Add VERSION.txt + * [f404cc1](../../commit/f404cc1) - __(Onur Ozgur OZKAN)__ [#7](../../issues/7) Add CHANGELOG.md + * [1a31842](../../commit/1a31842) - __(Muhammet DİLEK)__ [#5](../../issues/5) project created with cybele + * [20f347a](../../commit/20f347a) - __(Muhammet DİLEK)__ Initial commit diff --git a/README.md b/README.md index 98bc3c9..53094f9 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,16 @@ You must have * Ruby 2.x * Rails 4.x +## DEFAULT USERS + +Admin: +* Email: admin@yakut.org, Password: '12341234' + +Users: +* Email: user1@yakut.org, Password: '12341234' +* Email: user2@yakut.org, Password: '12341234' +* Email: user3@yakut.org, Password: '12341234' + ## CONTACT * [Twitter](https://twitter.com/yakutproject) diff --git a/db/seeds.rb b/db/seeds.rb index 4edb1e8..7738904 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -5,3 +5,24 @@ # # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) # Mayor.create(name: 'Emanuel', city: cities.first) + +if Rails.env.development? + admin = Admin.create(email: 'admin@yakut.org', + password: '12341234', + password_confirmation: '12341234') + + user1 = User.create(name: 'User 1', + email: 'user1@yakut.org', + password: '12341234', + password_confirmation: '12341234') + + user2 = User.create(name: 'User 2', + email: 'user2@yakut.org', + password: '12341234', + password_confirmation: '12341234') + + user3 = User.create(name: 'User 3', + email: 'user3@yakut.org', + password: '12341234', + password_confirmation: '12341234') +end \ No newline at end of file